|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Re: if only blocks were avoidable...by yosefm (Friar) |
| on Sep 22, 2003 at 11:07 UTC ( #293108=note: print w/ replies, xml ) | Need Help?? |
|
OK, it turns out that this isn't what I need, because if I use BEGIN, I can't use parameters passed to sub in order to decide on the condition. I can only use environment variables, perl variables and other stuff that already exists before anything happens. What I need is this:
BEGIN can't achieve that.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||