in reply to Re^6: How to look for two different file extensions?
in thread How to look for two different file extensions?
3) Why is introducing "Perl6" in this name-dropping way to a Perl beginner a good thing?Because Perl 6 does exactly the right thing in this case, something that we have all hoped one day that our language would do, and precisely the thing that the original poster was hoping to work:
which is exactly how you would say it in English: "if value equals 2 or 3 or 5 or 8", which is so much easier than: "if value equals 2 or value equals 3 or value equals 5 or value equals 8".> for 1..6 { say $_ if $_ == 2|3|5|8 } 2 3 5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: How to look for two different file extensions?
by Anonymous Monk on Mar 09, 2017 at 23:08 UTC | |
by Laurent_R (Canon) on Mar 10, 2017 at 00:05 UTC | |
| |
|
Re^8: How to look for two different file extensions?
by 1nickt (Canon) on Mar 10, 2017 at 00:17 UTC | |
by jdporter (Paladin) on Mar 10, 2017 at 20:43 UTC | |
by Your Mother (Archbishop) on Mar 15, 2017 at 21:19 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |