in reply to [SOLVED]: Using glob in file test gives "Use of uninitialized value in -e" warning.
The error is coming from:
For the case where the 'glob' returnsif (-e glob '/abc/def/ghi/test*') # line 4
You should break that into two tests:
my @tests; if (@tests = glob '/abc/def/ghi/test*' and -e $tests[0]) {# line 4
All power corrupts, but we need electricity.
|
|---|