dgaramond2 has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
What is the cause the error message: 'Modification of non-creatable hash value attempted, subscript "_" at ...'? perldiag is not very helpful. I'm loading hashes from a YAML document and am trying to see if some entries are invalid (say $u->{foo}), and then undef-ing them ($u->{foo} = undef) if they are. On some values of $u, this always happen and the invalid entries happen to be undef ($u->{foo} = undef). This stops happening if I set $u->{foo} to an empty string ('').
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Modification of non-creatable hash value attempted
by moritz (Cardinal) on Mar 07, 2008 at 09:40 UTC | |
|
Re: Modification of non-creatable hash value attempted
by akho (Hermit) on Mar 07, 2008 at 10:25 UTC | |
|
Re: Modification of non-creatable hash value attempted
by pascaldee (Acolyte) on Mar 08, 2008 at 00:34 UTC | |
by Joost (Canon) on Mar 08, 2008 at 00:38 UTC | |
by Anonymous Monk on Mar 08, 2008 at 15:14 UTC | |
|
Re: Modification of non-creatable hash value attempted
by Anonymous Monk on Jul 16, 2008 at 17:58 UTC |