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

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;
               s aamecha.s a..a\u$&owag.print

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://68269]
LanX ... on
[r@j]: # list all of a user's processes my $process_java = $lConfig_Hash{$MFT _CMD."_java"}; my $Process = find_proc(user=>' raj', detail=>1) || die "Sorry, $Process_java is not running" ; if(proc_exists( name=>'$Process_ja va')){
[LanX]: see SOPW
[r@j]: guys i am begginer on perl and above code is not working on window environment.kindly suggest which support on both window and Unix environment
[holli]: And I kindly suggest you post a question, instead of spamming the chetterbox

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2017-10-23 15:29 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (280 votes). Check out past polls.