Help for this page

Select Code to Download


  1. or download this
    @foo = (1,2,3);
    process_array(@foo);
    ...
        $var3 = shift;    # $var3 will only get '3'.
    
    }
    
  2. or download this
    sub process_array {
        @args = @_;
    
    }
    
  3. or download this
    sub process_array {
        $args = \@_;
    
    }