-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anomaly in caller() returned values #860
Comments
From Raphael.Manfredi@st.comThere is an anomaly in the way caller() returns its arguments. 1 sub a { which produces: b() called from main::a/10 If caller(0) is used instead in line 6, I get: b() called from main::b/2 The anomaly is that $sub refers to the calling routine, but Raphael Site configuration information for perl 5.00503: Configured by manfredi at Mon Aug 9 12:37:05 MET DST 1999. Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Locally applied patches: @INC for perl 5.00503: Environment for perl 5.00503: |
From @gsarOn Wed, 17 Nov 1999 16:31:55 +0100, Raphael Manfredi wrote:
FWIW, I don't think there's a bug here. What's probably print "executing $sub() at $line\n"; and you'll see what I mean. Sarathy |
From [Unknown Contact. See original ticket]Quoting gsar@activestate.com: I did not say it was a bug, I said it was an "anomaly". ;-) Seriously, I was astonished by the behaviour, but you're right. Perhaps the example you gave me should go in the documentation? Hence my confusion. Raphael |
Migrated from rt.perl.org#1790 (status was 'resolved')
Searchable as RT1790$
The text was updated successfully, but these errors were encountered: