in reply to Re: Re: Operator precedence (void context)
in thread Operator precedence (or, I'm an idiot)
Of course there may be side effects. That is why you don't have to use -w. But there is no good reason to use grep and/or map solely for their side effects and there are good reasons to not do so. The warning would be:
If you have some perverse reason for doing such, then just turn off that warning. For people wanting help in catching simple errors, the warning will be useful. - tyeUse of map/grep in void context, use foreach instead
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Void context
by rir (Vicar) on Mar 08, 2003 at 18:29 UTC | |
by merlyn (Sage) on Mar 08, 2003 at 18:40 UTC | |
by rir (Vicar) on Mar 08, 2003 at 19:01 UTC |