Re: grep and smart match should warn in void context
"Yitzchak Scott-Thoennes" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.extutils-makemaker.devel,gmane.comp.lang.perl.perl5.porters |
|---|---|
| Message-ID | <[email protected]> |
On Sun, January 6, 2008 12:15 pm, demerphq wrote: > On 06/01/2008, Rafael Garcia-Suarez <[email protected]> wrote: >> - grep(s/^(.*)/"-I$1"/, @{$perlinc || []}); >> + map(s/^(.*)/"-I$1"/, @{$perlinc || []}); > > /me wonders why that wasnt > > > s/^(.*)/"-I$1"/ for @{$perlinc || []}; > > or even > > $_=qq("-l$_") for @{$perlinc || []}; Especially if there are pesky newlines in the paths.