Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Retrieve path from file handle?

by AgentM (Curate)
on Apr 03, 2001 at 22:44 UTC ( [id://69422]=note: print w/replies, xml ) Need Help??


in reply to Retrieve path from file handle?

You'll need to store the filename in a string beforehand. Given a file handle, one cannot retrieve the filename without inode hopping which you're not interested in since the real solution is far simpler.
my $stringy='c:/data.txt'; open FH,">$stringy" or die; print $stringy;
Done.
AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found