Re: File operators don't dwim

2003-02-12 Thread Stéphane Payrard
ep { &{$fun}($_) } @args } > > # print (mapgrep { -x "$_/perl" } split /:/, $ENV{PATH}), "\n"; > > # > > # Is there a reason why file operators don't dwim? > > > > So you don't have problems with a file name that isn't true, like

Re: File operators don't dwim

2003-02-12 Thread Stéphane Payrard
case of success, fileops returns 1 not the filename. > # > # local $, = '\n"; > # sub mapgrep (&@) { my ($fun, @args)=@_; map { &{$fun}($_) > # } grep { &{$fun}($_) } @args } > # print (mapgrep { -x "$_/perl" } split /:/, $ENV{PATH}), "\n"