Help for this page

Select Code to Download


  1. or download this
           The Perl model for function call and return values is simple: a
    +ll func-
           tions are passed as parameters one single flat list of scalars,
    + and all
    ...
           many or as few scalar elements as you’d like.  (Often a functio
    +n with-
           out an explicit return statement is called a subroutine, but th
    +ere’s
           really no difference from Perl’s perspective.)
    
  2. or download this
       sub print_person {
          my $address_hashref = shift;
    ...
       my @hobbies = ( "flying", "mountain climbing" );
    
       print_person(\%address, \@hobbies);