Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: (Golf) Strings-to-Array

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


in reply to (Golf) Strings-to-Array

Not really golf, just having fun (requires Math::Matrix):
sub s2a {map{join'',@$_}@{+Math::Matrix::transpose[map[split''],@_]}}

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://68476]
help
Chatterbox?
[Discipulus]: ther is a way to golf this further:if(p$_)&(p $r)&$r!=$_ ?
[Discipulus]: being $r the reverse of $_

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2017-10-20 07:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (259 votes). Check out past polls.

    Notices?