<?xml version="1.0" encoding="windows-1252"?>
<node id="996407" title="Re: Question about alternative to File::Find" created="2012-09-29 13:40:28" updated="2012-09-29 13:40:28">
<type id="11">
note</type>
<author id="233329">
tinita</author>
<data>
<field name="doctext">
you can pass a sub reference. this way you don't need a global variable. short example:
&lt;code&gt;{ # somewhere in a block or sub
    my @files;
    find(sub {
        push @files, $_
    }, $dir);
}&lt;/code&gt;</field>
<field name="root_node">
996400</field>
<field name="parent_node">
996400</field>
</data>
</node>
