Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: (golf) Interlaced Strings

by Chmrr (Vicar)
on May 02, 2001 at 07:18 UTC ( #77225=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    sub j {
    my($a,$b)=@_;$a=~s/(.)/$1.substr($b,length($`),1)/ge;return$a;
    }
    
  2. or download this
    sub j {
    $_=pop;@_=split//,pop;s/./shift.$&/eg;$_
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://77225]
help
Chatterbox?
and the monks are mute...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2016-12-06 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (96 votes). Check out past polls.