Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 scrutinizing the Monastery: (8)
As of 2014-10-22 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (114 votes), past polls