Your skill will accomplish
what the force of many cannot
if modifier of a print statementby si_lence (Deacon)
|on Jun 30, 2009 at 10:44 UTC||Need Help??|
si_lence has asked for the
wisdom of the Perl Monks concerning the following question:
I have a strange behavior I do not really understand. I want to print out some lines with processing and some other without.
What I did in the first place was something like this:
this does not work, i.e it prints only the 'processing' lines.
So I changed the first print line to
This gives the output I want, but also the note
So I ended up using an if statement
That works again without any notes, but still leaves me wondering if and how it could be done with a modifier if.
Any insight welcome.