Honesty

 

Note_Perl

Page history last edited by Honesty 3 yrs ago
  • 2 contexts:
    • list context
      • list ()
      • array @
    • scalar context, 2 scalars: (specified by operators)
      • number
      • string
  • names: (variable name and array name have no relation)
    • scalar: $num
    • array: @num
    • array elements: $num[0]
  • @_ and $_, have no relation:
    • @_: function arguments
    • $_: default variables (foreach loop)
    • $_[0]: 1st function argument

Comments (0)

You don't have permission to comment on this page.