note
haukex
<p>"Hidden" a bit further down under [doc://perlop#I/O-Operators]:</p>
<blockquote>If what's within the angle brackets is neither a filehandle nor a simple scalar variable containing a filehandle name, typeglob, or typeglob reference, it is interpreted as a filename pattern to be globbed, and either a list of filenames or the next filename in the list is returned, depending on context.</blockquote>
<p>This is implemented by [doc://glob] and [doc://File::Glob]. Note that [doc://glob] has a few caveats one should be aware of: It does not list filenames beginning with a dot by default, and it splits its argument on whitespace, which may be important in case you are interpolating variables into the pattern - you can <c>use File::Glob ':bsd_glob';</c> to alleviate the latter caveat. Your particular usage <c></home/*/data/*.txt></c> (or equivalently, <c>glob('/home/*/data/*.txt')</c>) should be fine though.</p>
1205508
1205508