<?xml version="1.0" encoding="windows-1252"?>
<node id="972971" title="Re: EPIC on Eclipse: doesn't show $_" created="2012-05-29 05:44:01" updated="2012-05-29 05:44:01">
<type id="11">
note</type>
<author id="869476">
chrestomanci</author>
<data>
<field name="doctext">
&lt;p&gt;I just did a test on &lt;c&gt;$_&lt;/c&gt; using:&lt;/p&gt;

&lt;c&gt;
foreach ( qw(a b c) )
{
    print $_."\n";
}
&lt;/c&gt;

&lt;ol&gt;
&lt;li&gt;It shows up under "Global Variables" not perl internal variables&lt;/li&gt;
&lt;li&gt;It only shows up when &lt;c&gt;$_&lt;/c&gt; 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.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I was testing under linux, but with the same version of Eclipse and perl, so it should be comparable to your setup.&lt;/p&gt;</field>
<field name="root_node">
972888</field>
<field name="parent_node">
972888</field>
</data>
</node>
