#3 Global variables show as <undef>

closed-fixed
nobody
5
2001-11-25
2001-06-29
No

I code with 'strict' and local vars, but sometimes
like to cut and paste a bit of code to test it.

It appears global variables are not picked up, e.g.,

$var1 = 5;
$var2 = "five";
print "$var1\n";
print "$var2\n";

Stepping through this snippet shows either variable as
<undef> before the execution of either print statement.

Discussion

    • summary: Global variable show as <undef> --> Global variables show as <undef>
     
  • Logged In: YES
    user_id=165877

    Up to version 0.9.8 there is a scope resolution problem for
    all variables which aren't defined with &quot;my&quot;.
    These variables must be fully qualified to be evaluated by
    the Open Perl IDE Debugger. So, in the example above,
    $main::var1 and $main::var2 should work.

    This bug will be fixed in release 0.9.9.

     
    • status: open --> pending-later
     
    • summary: Global variables show as <undef> --> Global variables show as &lt;undef&gt;
    • status: pending-later --> closed-later
     
    • status: closed-later --> closed-fixed