|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Initializing an anonymous hashby davies (Priest) |
| on Mar 30, 2012 at 15:35 UTC ( #962637=note: print w/ replies, xml ) | Need Help?? |
|
eval works for me.
returns
Regards, John Davies Update: Be aware that this has hideous security implications. Also, as Moritz explained to me in reply to Testing error handling that calls "die", there are two forms of eval. But the code given above does what I think you say you want.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||