On Fri, Nov 23, 2001 at 11:28:14AM -0800, Ahmed Moustafa Ibrahim Ahmed wrote:
> The following line of code "if (-d $filename) {" gives me the error message
> "Useless use of a variable in void context". What does this error message,
> please?

perldiag describes that warning message, as others have pointed out. 
However, the line of code you show as causing it can't cause it; the warning
is generated from some other line of code.

Despite what a few others have said, that warning will not show up if
$filename is undefined.  A "Use of uninitialized value" warning might, but
not a "Useless use of a variable in void context".


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

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

Reply via email to