in reply to Re^2: strange usage of s///
in thread strange usage of s/// [solved: Perl 5.14 and 5.16 bug]
#!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...
|
|---|