Help for this page

Select Code to Download


  1. or download this
    sub foo { print 'Foo!' };
    
    ...
    };
    
    bar( \&foo );
    
  2. or download this
    sub foo1 { print 'Foo! One' };
    sub foo2 { print 'Foo! Two' };
    
    bar( \&foo1 );
    bar( \&foo2 );
    
  3. or download this
    
    sub foo1 { print 'Foo! One' };
    ...
    
    local $output = \&foo2;
    bar();
    
  4. or download this
    sub foo { print 'Foo!' };
    
    ...
        };
        bar();
    }