Help for this page

Select Code to Download


  1. or download this
    sub spiffy_little_function {
        my ($x,$y) = @_;
    ...
        $t = $z * 0.10;
        return($t)
    }
    
  2. or download this
    # test spiffy_little_function with options 'foo' and 'bar'
    <P>
    ...
    is($result,4.2,"spiffy_little_function:foo bar test");
    <P>
    restore_all_functions();
    
  3. or download this
    redefine_function(Foo::compute_result, sub { 
            is($_[0],"bar","spiffy_little_function passed right value to c
    +ompute_result") return(42); }