Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
    getInfo($scalar,%hash);
    __END__
    
  2. or download this
    scalar = 'string'
    hash = HASH(0x81677a4)
    baz => quux
    foo => bar
    
  3. or download this
    my @array = qw(foo bar baz);
    getInfo($scalar, @array);
    
    Type of arg 2 to main::getInfo must be hash (not private array) at foo
    +.pl line 16, near "@array)"