dear all,

i am trying to check if there are any files named file* (e.g. file_001.txt file1.doc) in my directory.

if( -e "file*" ) { print("true\n"); } # this doesn't work
else { print("false\n"); }

if( -e "m/^file/" ) { print("true\n"); } # this doesn't work either
else { print("false\n"); }

thank you in advance, any answer would be greatly appreciated.

-H.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to