Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

Comment on EPIC on Eclipse: doesn't show $_
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-11-28 00:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (191 votes), past polls