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