Welcome to the Monastery | |
PerlMonks |
Re: Can / Do BEGIN blocks return their evaluated content?by Roy Johnson (Monsignor) |
on Dec 21, 2007 at 18:49 UTC ( [id://658497]=note: print w/replies, xml ) | Need Help?? |
Neither BEGIN nor INIT blocks evaluate to anything. The way to do what you want is probably to involve a do block and a variable:
Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|