Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: (Golf) Strings-to-Array

by MeowChow (Vicar)
on Mar 30, 2001 at 07:42 UTC ( #68269=note: print w/ replies, xml ) Need Help??


in reply to (Golf) Strings-to-Array

# 33 chars sub s2a{map{$l[-1+pos].=$&while/./g}@_;@l}
... or 38 chars, if you want to throw in my@l;
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print


Comment on Re: (Golf) Strings-to-Array
Select or Download Code
Re: Re: (Golf) Strings-to-Array
by japhy (Canon) on Mar 30, 2001 at 07:48 UTC
    Add 6 chars. 5 for my@l; and one for the s modifier on your regex. 39 looks like the score to beat.

    japhy -- Perl and Regex Hacker

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2015-07-05 17:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls