in reply to [SOLVED]: Using glob in file test gives "Use of uninitialized value in -e" warning.

Congrats on 'use warnings'!

The error is coming from:

if (-e glob '/abc/def/ghi/test*') # line 4
For the case where the 'glob' returns an empty array undef (i.e. test* does not exist).

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.