Help for this page

Select Code to Download


  1. or download this
    sub foo {
        my $array_reference = shift;
    ...
    bar(@a2);
    # bar($a3); # Can't do that because it would be a runtime error. 
    bar(@$a3);
    
  2. or download this
    my $subref = \&bar; 
    $subref->(@a1);    # Doesn't act like bar(@a1)...