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?? |
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.
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.
In Section
Seekers of Perl Wisdom
|
|