<?xml version="1.0" encoding="windows-1252"?>
<node id="1003276" title="Re: File existance check failure" created="2012-11-10 15:59:46" updated="2012-11-10 15:59:46">
<type id="11">
note</type>
<author id="622051">
toolic</author>
<data>
<field name="doctext">
There is nothing in the [doc://-X|file test] documentation to indicate that it supports wilcard expansion.  You can use [doc://glob].  Something like:

&lt;c&gt;
use warnings;
use strict;

for (glob '*.a') {
    if (-f $_) {
        print "file $_ exists\n";
    }
}
&lt;/c&gt;


&lt;p&gt;UPDATE: Fixed typo (thanks [2teez])</field>
<field name="root_node">
1003275</field>
<field name="parent_node">
1003275</field>
</data>
</node>
