Is the output of these two lines equivalent?
map { $hash->{$_} = shift @record } @{$self->{'FIELDNAMES'}};
$hash->{$_} = shift @record foreach @{$self->{'FIELDNAMES'}};
They appear to be in my testing, but I'd like to make sure.
Is one more appropriate than the other in a situation like this, or is
it simply a styling difference?
Thanks,
Frank
SurfShop shopping cart is now open source...
Follow us on GitHub!
https://github.com/surfshopcart/surfshop
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/