On Sat, Feb 2, 2013 at 7:14 PM, yary <not....@gmail.com> wrote:
> It would be nice to have something like $OSNAME for filesystem type
> discovery... Beef up Sys::Filesystem and put it in the core? Or at least
> encourage its use where helpful...

That would only be helpful in limited cases, and in a very different
way than $OSNAME is. If your test runs somewhere in
/home/user/perl5/... and this is an NFS share, it could be it fails
because of the filesystem type, but it could be you actually want your
Perl code to run in /opt... which is on a BTRFS device, or the other
way around.
So the best way is to try and handle errors more gracefully, and this
could involve the use of Sys::Filesystem, maybe. Davids fix for using
File::Temp->new seems quite reasonable and more elegant, though.
--
Mike

Reply via email to