#!perl -pl s/@{[s".."."gr]}\K$"//
I understand the regex like this:
s/....\K // (with the good number of '.')
...but in facts it works like this:
s/....\K/ /
I don't understand why. The usage of $" seems magic too...
In reply to Re^3: strange usage of s///
by brx
in thread strange usage of s/// [solved: Perl 5.14 and 5.16 bug]
by brx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |