Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: (golf) Interlaced Strings

by jmcnamara (Monsignor)
on May 02, 2001 at 13:42 UTC ( #77272=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub R1{
        $_=sub{join"\0",split//,pop};"\0".&$_|&$_
    }
    
  2. or download this
    sub R2{
        sub _{join"\0",split//,pop}"\0".&_|&_
    }
    
  3. or download this
    sub R3{
        sub _{join$",split//,pop}$".&_|&_
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://77272]
help
Chatterbox?
[stevieb]: int func(int x, int y);
[stevieb]: int func(int x);
[stevieb]: For example

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2017-06-28 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (653 votes). Check out past polls.