Help for this page

Select Code to Download


  1. or download this
    sub foo($) { ... }
    
    bar foo $arg1, $arg2
    
  2. or download this
    sub foo($) {
        print "foo: $_\n" for @_;
        return "returned from foo";
    ...
    foo: 1
    foo: 2
    bar: returned from foo