Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

EPIC on Eclipse: doesn't show $_

by HelenCr (Monk)
on May 28, 2012 at 22:09 UTC ( #972888=perlquestion: print w/replies, xml ) Need Help??
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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://972888]
Approved by stevieb
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2016-10-24 21:46 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (310 votes). Check out past polls.