Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Is modifying the symbol table to redefine subroutines evil?

by perrin (Chancellor)
on Apr 11, 2007 at 23:17 UTC ( #609522=note: print w/replies, xml ) Need Help??


in reply to Re^2: Is modifying the symbol table to redefine subroutines evil?
in thread Is modifying the symbol table to redefine subroutines evil?

Here it is without globals:
{ my $foo_has_been_called; sub foo { if (not $foo_has_been_called) { call_me_only_once(); $foo_has_been_called = 1; } } }

Replies are listed 'Best First'.
Re^4: Is modifying the symbol table to redefine subroutines evil?
by dewey (Pilgrim) on Apr 12, 2007 at 02:06 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://609522]
help
Chatterbox?
[talexb]: Hmm. Trying to figure out how to trigger the author tests. This talks about .author in ./inc, but that doesn't seem to do the trick.
LanX sigh ... pitty I'm not a girl ... missing out on so many things
LanX ... or is it "boying out" ?
[choroba]: RELEASE_TESTING=1 for Module::Starter based distributions
LanX ..."mistering out" ?
[talexb]: choroba AH! Thanks so much.
[choroba]: prove -bl xt in some others
[talexb]: OK, major issues with MANIFEST .. this'll take me a while.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2017-10-23 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (279 votes). Check out past polls.

    Notices?