Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
    ...
    }
    print double(7);
    sub double {my $var = shift; return 2 * $var;}
    
  2. or download this
    $ perl scope.pl
    2
    1
    ...
    4
    5
    14