Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
OK, one more question: How do you guys recommend that I flatten lists? I mean... say I have some values in an array, or in two arrays and I want to turn it into one flat list that will not have any array-specific or similar behavior. I can want to pass it from a subroutine, from a do statement or from a map block or eval or whatever... Update: How about map $_, @stuff, @more_stuff? Update 2: Nope. As documented: "In scalar context, returns the total number of elements so generated."
use strict; use warnings; print "Just Another Perl Hacker\n";
In reply to Re: regexp list return 5.6 vs 5.8
by Sixtease
|
|