Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re (tilly) 2: Golf: Embedded In Order

by chipmunk (Parson)
on Apr 30, 2001 at 09:01 UTC ( #76549=note: print w/ replies, xml ) Need Help??


in reply to Re (tilly) 2: Golf: Embedded In Order
in thread Golf: Embedded In Order

I realized later that I had the replacement in the wrong order, and I could save two characters:

sub t_in_s { ($t=pop)=~s/./.*\Q$&/gs;pop=~/$t/s }
So that's 34 characters.


Comment on Re: Re (tilly) 2: Golf: Embedded In Order
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://76549]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2014-11-27 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (190 votes), past polls