Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2015-05-23 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (467 votes), past polls