go ahead... be a heretic | |
PerlMonks |
Re: Alias's and file handlesby john_oshea (Priest) |
on Apr 09, 2006 at 13:06 UTC ( [id://542131]=note: print w/replies, xml ) | Need Help?? |
You're going to have to use one or more OSX-specific modules to determine if $fileopened is actually an alias or not, resolve it to the target file, then open that to read the contents. Unlike symbolic or hard links, the core Perl distribution has no idea what an 'alias' is. MacOSX::File::Info has a $finfo->flags method to determine if a file is an alias, but I can't see anything immediately obvious that will then resolve it to the final file.
In Section
Seekers of Perl Wisdom
|
|