Help for this page

Select Code to Download


  1. or download this
    my $num1 = shift;
    my $flag = shift;
    
  2. or download this
    my ($num1, $flag) = @_;
    
  3. or download this
    use strict;
    use warnings;
    ...
    die "usage\n" if !@ARGV;
    
    print(fact($ARGV[0]), "\n");