in reply to Re^3: How do I replicate die's magic with $. ?
in thread How do I replicate die's magic with $. ?
The code snippet that I provided above gets the answer.
But it's a horrible way to get the answer. It requires an extra trapped exception, and parsing a text error message. The former is expensive, and the latter is not generally considered good practice for any number of reasons.
So, If someone knows the answer to my question - how does one reliably and efficiently get the name of the file handle associated with $. - I'd appreciate an answer.
Clearly, die figures it out - so it's available somewhere.
This communication may not represent my employer's views, if any, on the matters discussed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How do I replicate die's magic with $. ?
by Corion (Patriarch) on Aug 06, 2011 at 18:26 UTC | |
|
Re^5: How do I replicate die's magic with $. ?
by JavaFan (Canon) on Aug 08, 2011 at 09:14 UTC |