Seems like the method you use to assign filename doesn't always occur.
Maybe you have the my $filename='whatever' in an if statement?

Agustin Rivera
Webmaster, Pollstar.com
http://www.pollstar.com



----- Original Message -----
From: "Ahmed Moustafa" <[EMAIL PROTECTED]>
To: "Perl" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 10:02 AM
Subject: (-e $filename) gives Use of uninitialized value at...


> I'm using (-e $filename) to check the existence of $filename. If the file
> exists, it returns true, otherwise it gives 'Use of uninitialized value
> at...line #' (# is the line number of the if statement -if ($filename)-.
Why
> does that happen and how I can fix it, please?
>
> Thanks in advance.
>
> --Ahmed
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to