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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to