http://www.perlmonks.org?node_id=972888

HelenCr has asked for the wisdom of the Perl Monks concerning the following question:

Honorable PerlMonks

I have a problem in Eclipse/EPIC. When debugging a Perl program under Eclipse/EPIC, asking for "Perl Internal Variables view", it doesn't show the Perl variables: $_, $1, $2, etc..., $`, $' and $&.

It does show @INC, @_, $/, $<, $-, $= and several others. But I need $_, $1, $2 (etc.), $`, $' and $&, they are important.

Software, versions and system: Eclipse version 3.7.1 build M20110909-1335, EPIC version 0.6.44, Active Perl 5.14.2 running on Windows 7.

TIA Helen

Replies are listed 'Best First'.
Re: EPIC on Eclipse: doesn't show $_
by chrestomanci (Priest) on May 29, 2012 at 09:44 UTC

    I just did a test on $_ using:

    foreach ( qw(a b c) ) { print $_."\n"; }
    1. It shows up under "Global Variables" not perl internal variables
    2. It only shows up when $_ is in scope, so it disappears once I exit the loop, and if I rewrite the for loop above with a named temporary variable, then it never appears.

    I was testing under linux, but with the same version of Eclipse and perl, so it should be comparable to your setup.