ibm1620 has asked for the wisdom of the Perl Monks concerning the following question:
In other words, to change all undef values in a hash to the empty string?$foo{$_} = $foo{$_} // '' for keys %foo;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Convert undef to empty string in a hash
by GrandFather (Saint) on Jan 16, 2015 at 00:03 UTC | |
Re: Convert undef to empty string in a hash
by eyepopslikeamosquito (Archbishop) on Jan 16, 2015 at 07:23 UTC | |
by Anonymous Monk on Jan 16, 2015 at 07:46 UTC | |
by eyepopslikeamosquito (Archbishop) on Jan 16, 2015 at 08:26 UTC | |
by karlgoethebier (Abbot) on Jan 16, 2015 at 18:11 UTC | |
by Anonymous Monk on Jan 16, 2015 at 18:44 UTC | |
| |
by Anonymous Monk on Jan 17, 2015 at 01:08 UTC | |
by Anonymous Monk on Jan 17, 2015 at 09:28 UTC | |
by eyepopslikeamosquito (Archbishop) on Jan 18, 2015 at 00:30 UTC | |
| |
|