I've recently come across this slightly odd (at least it seems so to me) construct: foreach my $line(<INFILE>){} # assume INFILE is open and I am a little curious - is this completely analagous to while (my $line = <INFILE>){} or is there some subtle difference? (in terms of efficiency)
Please shed the light of wisdom on this monk, unfamiliar with the mysteries of perl's inner workings.
In reply to foreach question by glwtta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |