Next Hook::LexWrap 9

Examples of Tricky Features

        {
           my $dummy = wrap 'foo', pre => ..., post => ...;
           foo(...);    # Pre and post wrappers are called
        }
        foo(...);   # Pre and post wrappers are not called

        { 
           my $dummy = wrap 'foo', pre => ..., post => ...;
           bar();
           # END OF LEXICAL SCOPE
        }
        sub bar {
          foo();     # Pre and post wrappers are called anyway
        }


Next Copyright © 2003 M. J. Dominus