in reply to var comparison
Using smart matching (5.10+) is another option (unless 'clarity of intent' is compromised):
$var ~~ [qw/foo bar/];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: var comparison
by LanX (Saint) on Sep 06, 2012 at 23:39 UTC | |
by Kenosis (Priest) on Sep 07, 2012 at 00:27 UTC | |
by LanX (Saint) on Sep 07, 2012 at 07:35 UTC | |
by nemesisgus (Acolyte) on Sep 07, 2012 at 15:55 UTC | |
|
Re^2: var comparison
by nemesisgus (Acolyte) on Sep 06, 2012 at 22:00 UTC |