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
B module with -MO=Xref reports Can't locate object method "xref" via package... #1939
Comments
From jmilton@fundsxpress.comCreated by jmilton@fundsxpress.comI found this problem with the B.pm in perl 5.005_03 and was surprised When I do this "myperl -MO=Xref -e 'print time;", it works fine. When I do this "myperl -MO=Xref Report.pm", I get: Can't locate object method "xref" via package "B::SPECIAL" at /mesa/devtrees/jmilton-cvs/mainline/me/perl5.6/lib/5.6.0/alpha-dec_osf/B.pm line 191. That Report.pm is connected to miles of legacy code, but I found the Inline Patch--- B.pm.org Thu May 4 19:26:34 2000
+++ B.pm Fri May 5 13:19:55 2000
@@ -182,7 +182,7 @@
$prefix = '' unless defined $prefix;
while (($sym, $ref) = each %$symref) {
*glob = "*main::".$prefix.$sym;
- if ($sym =~ /::$/) {
+ if ($sym =~ /::\$/) {
$sym = $prefix . $sym;
if ($sym ne "main::" && &$recurse($sym)) {
walksymtable(\%glob, $method, $recurse, $sym); Perl Info
|
From @gsarOn Fri, 05 May 2000 13:35:16 CDT, John Milton wrote:
Thanks, but that doesn't appear to be the right fix. I'd say a Sarathy |
From [Unknown Contact. See original ticket]Gurusamy Sarathy (lists.p5p):
Firstly, I can't reproduce this at all. I went throught the whole Perl I'll contact the original poster and try and see if I can reproduce
But anyway, B::Xref doesn't want to look at special pads: sub load_pad { Normally it avoids putting SPECIAL pads in its list of things to look |
From [Unknown Contact. See original ticket]Simon Cozens (lists.p5p):
Not even on a substantial chunk of CPAN. Weird, weird, weird. However, #!perl Somehow, Xref is getting hold of a lexical with no name and type. It's *very* name dependent - this will give a warning: perl -MO=Xref /usr/lib/perl5/site_perl/5.005/HTTP/Status.pm This won't: cp /usr/lib/perl5/site_perl/5.005/HTTP/Status.pm Bar/Foo.pm Can you say "huh?"? |
From @smpetersThis bug could not be reproduced and the author of the ticket was unable |
@smpeters - Status changed from 'open' to 'stalled' |
p5p@spam.wizbit.be - Status changed from 'stalled' to 'resolved' |
Migrated from rt.perl.org#3209 (status was 'resolved')
Searchable as RT3209$
The text was updated successfully, but these errors were encountered: