Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: strange usage of s///

by brx (Pilgrim)
on Sep 03, 2013 at 20:13 UTC ( #1052171=note: print w/replies, xml ) Need Help??


in reply to Re: strange usage of s///
in thread strange usage of s/// [solved: Perl 5.14 and 5.16 bug]

PS: The s/@{[s".."."gr]}\K$"// solution does not work for me at all. Does it actually work for you?

Sure. This solution was accepted on anarchy golf site.

perl -e '$_="abcdef";s/@{[s".."."gr]}\K$"//;print"$_\n";' abc def
English is not my mother tongue.
Les tongues de ma mère sont "made in France".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052171]
help
Chatterbox?
[LanX]: what?
[LanX]: $; exists, so does the glob
[GotToBTru]: $; is "useful for emulating multi-dimensional arrays in Perl4"
[LanX]: i.e. &; is parsable
[LanX]: it's sometimes useful in P5 too

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2017-01-18 21:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (164 votes). Check out past polls.