What the statement does

    local *What::ever = \&my_sub; # with a named sub
or
    local *What::ever = sub { }; # with a closure

is to locally redefine the *What::ever{CODE} slot of the glob.


Adriano, *you* are awesome! I've been fiddling with this sort of thing dancing around the right way and BAM you come though!

Thanks a bunch!

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to