Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $value = shift;
    
    print ' result = ', $value + $opt{offset}, "\n";
    
  2. or download this
    $ add.pl 5
     result = 8
    ...
     result = -2
    $ add.pl +offset -2 12
     result = 10