statebelt has asked for the wisdom of the Perl Monks concerning the following question:
foo foreach @list; # or maybe &foo to satisfy use strict;
rather than:
foo($_) foreach @list;
If the answer is NO, that's fine. ;-) Thanks! Thomas
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can I tell a sub to take $_ instead of @_ (like some builtins do)
by broquaint (Abbot) on Aug 22, 2002 at 18:50 UTC | |
|
•Re: Can I tell a sub to take $_ instead of @_ (like some builtins do)
by merlyn (Sage) on Aug 22, 2002 at 18:43 UTC | |
|
Re: Can I tell a sub to take $_ instead of @_ (like some builtins do)
by no_slogan (Deacon) on Aug 22, 2002 at 18:48 UTC | |
|
Re: Can I tell a sub to take $_ instead of @_ (like some builtins do)
by BrowserUk (Patriarch) on Aug 22, 2002 at 19:27 UTC | |
by Sweeper (Pilgrim) on Aug 23, 2002 at 05:44 UTC | |
by BrowserUk (Patriarch) on Aug 23, 2002 at 05:58 UTC | |
|
Re: Can I tell a sub to take $_ instead of @_ (like some builtins do)
by Aristotle (Chancellor) on Aug 22, 2002 at 23:11 UTC |