use warnings; use strict; for (glob '*.a') { if (-f $_) { print "file $_ exists\n"; } }
UPDATE: Fixed typo (thanks 2teez)
In reply to Re: File existance check failure
by toolic
in thread File existance check failure
by Festus Hagen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |