Himaja has asked for the wisdom of the Perl Monks concerning the following question:
I have a hash with uninitialised as well as initialsed strings. eg: 'A1'=>'Default' 'A2' => '' How do I detect an uninitialised string? I have tried things like if(defined $str) and next if ($str eq undef). TIA
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking for blank string
by choroba (Cardinal) on Sep 26, 2016 at 08:00 UTC | |
by Himaja (Novice) on Sep 26, 2016 at 08:28 UTC | |
by hippo (Archbishop) on Sep 26, 2016 at 08:46 UTC | |
|
Re: Checking for blank string
by haukex (Archbishop) on Sep 26, 2016 at 08:15 UTC | |
by Himaja (Novice) on Sep 26, 2016 at 08:46 UTC | |
by haukex (Archbishop) on Sep 26, 2016 at 09:25 UTC | |
by choroba (Cardinal) on Sep 26, 2016 at 09:52 UTC | |
by haukex (Archbishop) on Sep 26, 2016 at 10:15 UTC | |
|
Re: Checking for blank string
by davido (Cardinal) on Sep 26, 2016 at 15:13 UTC | |
|
Re: Checking for blank string
by AnomalousMonk (Archbishop) on Sep 26, 2016 at 16:56 UTC |