It reminds me on patern ranges in awk. Could anyone explain what's going under the hood of this code?
There's no need to; perldoc perlop explains it nicely already:
In scalar context, ".." returns a boolean value. The operator is bistable, like a flip-flop, and emulates the line-range (comma) operator of sed, awk, and various editors.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Explanation of an one-liner
by sauoq
in thread Explanation of an one-liner
by ejanev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |