<?xml version="1.0" encoding="windows-1252"?>
<node id="117693" title="Re:{2} Adding Files in a directory to an array" created="2001-10-09 11:10:32" updated="2005-07-19 14:08:39">
<type id="11">
note</type>
<author id="41288">
jeroenes</author>
<data>
<field name="doctext">
Not &lt;i&gt;exactly&lt;/i&gt;. 
&lt;p&gt;
While it is better (and I mean really, really better)
to use the functional [glob], you still can 
force perl to interpolate variables. Actually,
only filehandles and simple scalars are not
interpolated (see [perlop]). So these:
&lt;code&gt;
@dir=&lt;$hash{$key}&gt;;
@dir=&lt;$array[0]&gt;;
@dir=&lt;$object-&gt;method&gt;;
@dir=&lt;${foo}&gt;;
#  and even
@dir=&lt;$structure{'filehandle'}&gt;;
&lt;/code&gt;
are interpreted as [glob]s. Note that this is a caveat in
the last case! Since you probably want the &lt;&gt; to do a 
[readline]
in the last case, people really need to be aware that
nested structures are always [glob]bed.
Only simple, straightforward variables like $foo result
in [readline]s.
&lt;p&gt;
&lt;p&gt;
Jeroen&lt;br&gt;


&lt;i&gt;"We are not alone"(FZ)&lt;/i&gt;</field>
<field name="root_node">
117669</field>
<field name="parent_node">
117674</field>
</data>
</node>
