Closed p5pRT closed 20 years ago
mkdir /tmp/f2p cd /tmp/f2p touch a b find a b -print
# prints a b # as expected
find2perl a b -print > f2p.out perl f2p.out
prints ./ ./ # not expected!
# same thing happens with File::Find perl -MFile::Find -wle 'find sub { print $File::Find::name }\, qw(a b)' ./ ./
perl 5.004_03 didn't have this problem
David Dyck (lists.p5p):
find2perl a b -print > f2p.out perl f2p.out
prints ./ ./ # not expected!
perl -MFile::Find -wle 'find sub { print $File::Find::name }\, qw(a b)' ./ ./
I'd expect the second one; C\<$File::Find::name> contains the complete pathname to the file.
However\, since it breaks find2perl\, I'd imagine that this isn't what's desired. The following patch satisfies your expectations\, although I'm not sure it's what was originally envisaged.
"If I ever get around to writing that language depompisifier\, it will change almost all occurences of the word "paradigm" into "example" or "model." -- Herbie Blashtfalt
Migrated from rt.perl.org#2464 (status was 'resolved')
Searchable as RT2464$