Perl-Sensitive Sunglasses | |
PerlMonks |
If/Else or Unless Not Triggering Correctlyby ljamison (Sexton) |
on Apr 21, 2016 at 14:19 UTC ( [id://1161093]=perlquestion: print w/replies, xml ) | Need Help?? |
ljamison has asked for the wisdom of the Perl Monks concerning the following question: Hail Monks! I have a module with a function which should only trigger if certain conditions are true/false (depending on if I use if or unless) but the way it is currently triggering it appears that the if/unless is being ignored. I'm under the impression it has to do with the priority order of the operators but I'm not certain. Attempt using unless:
Attempt using if/else:
Both of these attempts failed to prevent the email notification from being sent out and I'm not sure what I have written wrong. Thank you in advance for any advice!
Back to
Seekers of Perl Wisdom
|
|