Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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
[choroba]: The documentation just says the second argument should be "characters"

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2018-02-22 17:05 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (295 votes). Check out past polls.