Is there a perl-ish way to determine whether a given file is on a local disk as opposed to being NFS/Samba/etc mounted? Or do I just have to go parse the output of commands like "mount" and compare paths or something? I'm trying to make my code not be dependent on external system commands.