Subject: | -f prevents file /dev/null |
Date: | Sun, 12 Jul 2009 11:25:24 +1000 |
To: | bug-Module-Manifest [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With Module::Manifest 0.07 I tried
use Module::Manifest;
my $manifest = Module::Manifest->new('/dev/null', '/dev/null');
and got an error
Did not provide a readable file path at foo.pl line 2
whereas of course /dev/null does exist and is readable.
In $manifest->open I think the -f test should be omitted. I believe it
almost never helps to pre-empt what open() might be capable of on a
given file/device/socket/etc (at least once using three-arg open or
whatever to ensure the name is not interpreted ...)