Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^5: Code asks, in what file do I live?

by Steve_p (Priest)
on Sep 23, 2004 at 20:55 UTC ( #393324=note: print w/replies, xml ) Need Help??

in reply to Re^4: Code asks, in what file do I live?
in thread Code asks, in what file do I live?

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^6: Code asks, in what file do I live?
by dave_the_m (Monsignor) on Sep 23, 2004 at 21:05 UTC
    Since your example only contained one file, it can't demonstrate whether it's displaying the filename from the correct context, since all contexts will have the same filename.

    On the other hand, my example contained two files (well, a file and a -e) and clearly demonstated that the output of (caller(0))[1] was a different filename from the file containing the 'caller' line itself.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2021-04-14 11:06 GMT
Find Nodes?
    Voting Booth?

    No recent polls found