Your function already exists in module List::MoreUtils.
use strict; use warnings; use List::MoreUtils qw{ mesh }; my @first = qw(Can unlock secret); my @second = qw(you the code?); my @mixed = mesh @first, @second; print "Result: @mixed\n";
UPDATE: Again a few seconds too late... davido being faster again!
In reply to Re: Using Splice with Two Arrays within a loop
by hdb
in thread Using Splice with Two Arrays within a loop
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |