- or download this
#!/usr/bin/perl
use strict;
...
while @first || @second;
print "@interleave";
- or download this
#!/usr/bin/perl
use strict;
...
splice @first, @second, 0, pop @second while @second;
print "@first";
- or download this
...
splice @first, $_, 0, $second[$_ - 1] for reverse 1 .. @second;
print "@first";
- or download this
my @new;
splice @new, 0, 0, $first[$_], $second[$_] for reverse 0 .. $#second;
print "@new";
- or download this
#!/usr/bin/perl
use strict;
...
printf "%-10s %s\n", $msg, join '|', map {"@$_"} @arrays;
}
- or download this
start Can unlock secret|you the code?
first Can you the unlock secret|you the code?
...
na1 Can you the unlock secret|you the code?|Can you unlock secr
+et you code?
na2 Can you the unlock secret|you the code?|Can you unlock secr
+et code?
na3 Can you the unlock secret|you the code?|Can you unlock the
+the secret code?