in reply to Re: Re: Uninitialized value ?
in thread Uninitialized value ?

This however alters the way the program works.
if (!defined $secretword or $secretword eq '') {
It will now both check if $secretword has some value (possible empty) and if it is empty.
This can be boiled down to the line
if (!$secretword) {
or if you like the unless operator:
unless ($secretword) {


T I M T O W T D I

Replies are listed 'Best First'.
Re: Re: Re: Re: Uninitialized value ?
by busunsl (Vicar) on Aug 20, 2001 at 17:57 UTC
    Well, it can't be '', because it is either undef or has a value from the hash, which are all known to be not ''.
Re: Re: Re: Re: Uninitialized value ?
by All0uette (Acolyte) on Aug 21, 2001 at 19:54 UTC
    CINE, Thks for that, learning new stuff all the time.... Steve.
      You're welcome ;)

      T I M T O W T D I