Help for this page

Select Code to Download


  1. or download this
    sub foo(\@@) {
      my ($aref,@rest) = @_;
    }
    
  2. or download this
    #!/usr/local/bin/perl -w
    use strict;
    ...
    a b c d
    e f g h
    rest is i j k l
    
  3. or download this
    test( [qw(a b c d)], [qw(e f g h)], qw(i j k l));
    sub test {
        my ($a,$b,@rest) = @_;
        print "@$a\n@$b\nrest is @rest\n";
    }