<HTML>
<HEAD>
<TITLE>Re: strange file exists behavior</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>I don&#8217;t think the file test operators do globbing. You can use glob() instead if you want.<BR>
<BR>
if (! glob(&#8220;</SPAN></FONT><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:13.0px'>$target_path/$filename&quot;)) {<BR>
&nbsp;&nbsp;&nbsp;next;<BR>
}<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
perldoc &#8211;f glob<BR>
<BR>
HTH,<BR>
<BR>
j<BR>
<BR>
<BR>
<BR>
On 8/14/08 7:54 AM, &quot;Sean Baker&quot; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:13.0px'>Does anyone have any clue why my &#8220;-e&#8221; check is saying file does not exist and dropping me into the &#8220;next;&#8221; statement? &nbsp;It doesn&#8217;t like asterisks? &nbsp;It works fine when I use the entire file name.<BR>
&nbsp;<BR>
&nbsp;<BR>
main::(usw_response_by_min.pl:47): &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`scp lb1:$source_path/$filename $target_path`;<BR>
&nbsp;&nbsp;DB&lt;3&gt; n<BR>
main::(usw_response_by_min.pl:48): &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (! -e &quot;$target_path/$filename&quot;) {<BR>
&nbsp;&nbsp;DB&lt;3&gt; n<BR>
main::(usw_response_by_min.pl:49): &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next;<BR>
&nbsp;&nbsp;DB&lt;3&gt; p &quot;$target_path/$filename&quot;<BR>
/datamining/usw_log/ban*trans-20080813*<BR>
&nbsp;<BR>
&nbsp;<BR>
pbaker@omares-etl:/datamining/usw_log&gt; ls /datamining/usw_log/ban*trans-20080813*<BR>
/datamining/usw_log/banana_slicer.pl-trans-20080813.gz<BR>
&nbsp;<BR>
&nbsp;<BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT>
</BODY>
</HTML>