docs:programming:perl:perl_notes

Perl Notes

  • @_ - any arguments passed to a subroutine are accessible with this variable
  • $var is a scalar
  • (8, $a, 0.4, 'test') is a list (used to create arrays, etc…)
  • @var is an array
    • $var[0] is the first item in the array
  • %var is a hash
    • $var{key} is the value of the item with “key”
  • docs/programming/perl/perl_notes.txt
  • Last modified: 2008/08/03 00:25
  • by 127.0.0.1