in reply to Appending strings from one array onto strings of another
$_ .= shift @d for @z; # Elegant, but destroys @d. my $i; $_ .= $d[$i++] for @z; # Less elegant, no destruction.
I really don't care for that second one. I'd probably prefer the first one you gave over it. But, I offer it in the name of TIMTOWTDI anyway.
-sauoq "My two cents aren't worth a dime.";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Appending one array onto another
by Aristotle (Chancellor) on Jun 10, 2003 at 22:00 UTC |
In Section
Seekers of Perl Wisdom