in reply to File existance check failure
use warnings; use strict; for (glob '*.a') { if (-f $_) { print "file $_ exists\n"; } }
UPDATE: Fixed typo (thanks 2teez)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File existance check failure
by Festus Hagen (Acolyte) on Nov 11, 2012 at 01:34 UTC | |
by Athanasius (Archbishop) on Nov 11, 2012 at 04:11 UTC | |
by Festus Hagen (Acolyte) on Nov 11, 2012 at 04:38 UTC | |
by graff (Chancellor) on Nov 12, 2012 at 03:05 UTC |