Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Alias's and file handles

by john_oshea (Priest)
on Apr 09, 2006 at 13:06 UTC ( [id://542131]=note: print w/replies, xml ) Need Help??


in reply to Alias's and file handles

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://542131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-20 02:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found