Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: print or dieby lhoward (Vicar) |
on Jul 02, 2001 at 23:14 UTC ( [id://93287]=note: print w/replies, xml ) | Need Help?? |
When dealing w/ a heredoc string you put your "or die" w/ the original print statment:
It works similarly whenever you want to do something else after the heredoc... prints out 123. You can even get fancy (or hard to read depending on your preference) and use multiple heredocs in the same call:
In Section
Seekers of Perl Wisdom
|
|