Re: grep and smart match should warn in void context

[email protected] ("Yitzchak Scott-Thoennes")
Newsgroups perl.perl5.porters,perl.makemaker
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.