Welcome to the Monastery | |
PerlMonks |
Re: a perl code syntax helpby Discipulus (Canon) |
on Jul 28, 2014 at 11:09 UTC ( [id://1095330]=note: print w/replies, xml ) | Need Help?? |
hello, you are facing a so called here-doc declaration: you can find more on this here You cannot insert a conditional statemenent in an such a construction. But you can easyly wrap the assignement in a conditional:
HtH L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|