Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by Athanasius (Abbot)
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
Replies are listed 'Best First'.
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 making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2015-07-31 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls