Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    };
    
    print "factorial of 7 is ".&$sub(7)."\n";
    
  2. or download this
    my @factorials = map {&{
        my $this_sub;
    ...
        }}($_)} (3,5,7,9);
    
    print "factorials: @factorials\n";