Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Personally defined pragmas

by andyf (Pilgrim)
on Jun 07, 2004 at 10:38 UTC ( #361928=note: print w/ replies, xml ) Need Help??


in reply to Personally defined pragmas

If I understand correctly Crabbdean you want to add a state to your module, just one extra hash key that acts as a flag. You might turn this on and off in an instance with

$thisthing->verboseon; some more code needing verbosity $thisthing->verboseoff;
The push would be internally short circuited to a nop where the verbose flag is not on. Or am I missing your point?


Comment on Re: Personally defined pragmas
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://361928]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-07-26 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls