vs.while (my @fields = (getpwent)[6,7]) { map {print "$_\n"} @fields; print ("-" x 80); }
Just curious..while (my @fields = (getpwent)[6,7]) { foreach my $item (@list) { print "$_\n"; } print ("-" x 80); }
In reply to map vs. foreach by rchiav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |