in reply to Not getting desire output by using switch statement in Perl
Your condition is not doing what you think:
perl -MO=Deparse,-p -e '$a eq "a" || "b" || "c" || "d"' (((($a eq 'a') or 'b') or 'c') or '???');
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Not getting desire output by using switch statement in Perl
by rammohan (Acolyte) on Jan 06, 2014 at 11:53 UTC | |
by choroba (Cardinal) on Jan 06, 2014 at 12:11 UTC |
In Section
Seekers of Perl Wisdom