Think about Loose Coupling | |
PerlMonks |
Personally defined pragmasby crabbdean (Pilgrim) |
on Jun 07, 2004 at 10:26 UTC ( [id://361924]=perlquestion: print w/replies, xml ) | Need Help?? |
crabbdean has asked for the wisdom of the Perl Monks concerning the following question:
I'm wondering if its possible to create a pragma just for my module? I've created a module in which every call to "push" is only performed if a verbose option is set. push (@{$self->{output}}, ["chmod:\t$dir"]) if ($self->{verbose}); Is it possible to create this so its just like this ... push (@{$self->{output}}, ["chmod:\t$dir"]); ... but only within my module? Dean The Funkster of Mirth Programming these days takes more than a lone avenger with a compiler. - sam RFC1149: A Standard for the Transmission of IP Datagrams on Avian Carriers
Back to
Seekers of Perl Wisdom
|
|