in reply to regexp list return 5.6 vs 5.8
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."
perl -le 'print scalar map $_, qw(a b c)' 3
use strict; use warnings; print "Just Another Perl Hacker\n";
In Section
Seekers of Perl Wisdom