Help for this page

Select Code to Download


  1. or download this
    ## Note-- do not copy and paste! Read perlman:perlref.
    sub get_stuff {
    ...
    ($array_ref, $hash_ref) = get_stuff;
    @newarray = @$array_ref;
    %hash = %$hash;
    
  2. or download this
    ($array_ref, $hash_ref) = get_stuff;
    my $first_element = $array_ref->[0];
    my $thingy = $hash_ref->{'thingy'};