Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Tracking down the source of a new 5.10 warning

by BrowserUk (Patriarch)
on Sep 15, 2009 at 22:11 UTC ( [id://795490]=note: print w/replies, xml ) Need Help??


in reply to Tracking down the source of a new 5.10 warning

I knew I'd seen this somewhere. Did you see this from perlintern ?

The flag SVf_PADSTALE is cleared on lexicals each time the my() is executed, and set on scope exit. This allows the 'Variable $x is not available' warning to be generated in evals, such as

I'm not sure what that means, but there is an example following the above quote that, in conjunction with your knowledge of what you are doing, may help you narrow your search.

To track it further, you might try Devel::Trace and pipe the output through grep looking for '$x':

C:\test>perl -d:Trace -E" { my $x; sub f{ eval '$x'; } } f()" >> [0] -e : 1: { my $x; sub f{ eval '$x +'; } } f() >> [0] -e : 1: { my $x; sub f{ eval '$x +'; } } f() >> [0] -e : 1: { my $x; sub f{ eval '$x +'; } } f() >> [0] -e : 1: { my $x; sub f{ eval '$x +'; } } f() >> [0] (eval 2)[-e:1] : 1: $x

I can't get their example to produce the error, but by filtering the output from D::T you ought to be able to locate the source fairly easily.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2025-03-27 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (69 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.