Think about Loose Coupling | |
PerlMonks |
Re: Merge 2 strings like a zipby tel2 (Pilgrim) |
on Jul 10, 2015 at 01:22 UTC ( [id://1134071]=note: print w/replies, xml ) | Need Help?? |
Thanks everyone for your contributions to my education.
I now realise my original code could have been simplified (and sped up) like this:
Of course that only meets my original spec's (i.e. 2nd string must be the shortest) but it seems to be pretty fast (though I guess the concatenation would slow it down if my data was much longer).
In Section
Seekers of Perl Wisdom
|
|