Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    
    
    #$f->fake_function( 'Fake');  # program will die
    
  2. or download this
    $f->override( 'test::function', sub { print 'foo' } );
    # Do your testing;
    $f->restore( 'test::function' );