-- Philip Newton <[EMAIL PROTECTED]>
hat happens when you do
@a = qw( foo bar bletch blort bim bam blort );
my ( $a, $b, $c ) = @a;
?
Obviously a better example. Point is that $c is one
item on the list, but $a, $b, and $c are still on the
list. Given that the original code used the conteints
of @_ as fodder for the map it seemed more effective
to grab the values off the front rather than assign
them. So that using:
my( $a, $b, $c ) = @_
...
map
{
...
}
@_
would not provide the same result as shifting the first
three items off of @_. You could obviously splice the
three items off in a void context after the assignment,
but at that point it seems easier to just assign the
shifts and be done with it in one place.
--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 800 762 1582