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 reply to Re: Alias's and file handles
by john_oshea
in thread Alias's and file handles
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |