Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: package variables turning suddenly to undef and back again depending on subfunction call

by Athanasius (Monsignor)
on Feb 25, 2013 at 16:33 UTC ( #1020543=note: print w/ replies, xml ) Need Help??


in reply to package variables turning suddenly to undef and back again depending on subfunction call

Doing a print in the debugger is also giving me nothing -> undef.

Before anything else: Turn off the debugger, and put (ordinary Perl) print statements, showing the values of the package globals,

  • immediately before the call to ResolveContainers
  • on entry to ResolveContainers
  • immediately before the 2 return statements in ResolveContainers
  • immediately following the return of sub ResolveContainers within sub ProcessContainers.

If the variables still go from defined to undef and back, there is a bug in the Perl script. But if the variables keep their correct values, there is simply a bug in the Eclipse-Debugger.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,


Comment on Re: package variables turning suddenly to undef and back again depending on subfunction call
Select or Download Code
Re^2: package variables turning suddenly to undef and back again depending on subfunction call
by tobias_hofer (Friar) on Feb 26, 2013 at 07:52 UTC

    I have tested it with print statements, it seems its a problem with the eclipse-plugin or the debugger because values are not undef. :-)

    Thanks a lot!
    Tobias

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2014-07-28 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (204 votes), past polls