Dan Muey wrote:

> > >
> > > ./test.pl
> > > Use of uninitialized value at ./test.pl line 4.
> > > HI
> > > ./test.pl hi7
> > > hi7 has a number in it
> > > HI
> >
> >       use:
> >        if ( defined $ARGV[0] && ....)
>
> Thanks that did it!
>
> > Wags ;)

Whoops!  Should have read this before I posted.  Using defined() will capture a 0 from 
STDIN, which could be ameaningful value.  Your suggestion is much better than mine on 
this thread.

Joseph


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

Reply via email to