in reply to Re: Help with recurring "uninitialized variable" problem.
in thread Help with recurring "uninitialized variable" problem.

Ovid wrote:
Try this:
while (defined (my $one_line = <>))
This gives the same warnings, I'm afraid.

C_T

Charles Thomas
Madison, WI

Replies are listed 'Best First'.
Re: Re: Re: Help with recurring "uninitialized variable" problem.
by Ovid (Cardinal) on Apr 09, 2004 at 17:12 UTC

    How are you getting your values in @ARGV? I think one of more of them is undef. As a quick test, try adding the following line before the while loop. If it suppresses the warnings, you have undef values there.

    @ARGV = grep defined() => @ARGV;

    Cheers,
    Ovid

    New address of my CGI Course.