Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: backslash found where operator expected atby BillKSmith (Monsignor) |
on Apr 22, 2021 at 15:38 UTC ( [id://11131602]=note: print w/replies, xml ) | Need Help?? |
I like to use the Ternaries as suggested in the book "Perl Best Practices".
The constants may be overkill, but if the names are important enough to include as comments, why not make them part of the actual perl code? UPDATE -- Corrected sense of if statement
Bill
In Section
Seekers of Perl Wisdom
|
|