in reply to Re^2: Error "Can't use an undefined value as a HASH reference" while working with generated objects
in thread Error "Can't use an undefined value as a HASH reference" while working with generated objects
my %valeur; if( @values and defined $values[0] and 'ARRAY' eq ref $values[0] and defined $values[0][0] and 'HASH' eq ref $values[0][0] ) { %valeur = %{ $values[0][0] }; }
my %valeur; if ( my $want = Dive( \@values, qw/ 0 0 / ){ %valeur = %$want; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Error "Can't use an undefined value as a HASH reference" while working with generated objects
by tobyink (Canon) on Oct 11, 2012 at 14:03 UTC | |
|
Re^4: Error "Can't use an undefined value as a HASH reference" while working with generated objects
by HJO (Acolyte) on Oct 11, 2012 at 10:28 UTC | |
by Anonymous Monk on Oct 11, 2012 at 10:46 UTC | |
by HJO (Acolyte) on Oct 12, 2012 at 07:27 UTC |