in reply to setting values in anonymous hash
I think I am missing something fundamental. First, I don't see why %tmp is necessary, nor do I I understand resetting the $k and $v before the while loop starts over -- don't they get reset automatically?
In other words, why wouldn't this work:
?while (my $ref2 = $sth2->fetchrow_hashref()) { while (my ($k, $v) = each %$ref2) { $ref2->{$k} = '' if $v == undef; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: setting values in anonymous hash
by Dominus (Parson) on Nov 28, 2000 at 19:50 UTC | |
by snax (Hermit) on Nov 28, 2000 at 19:55 UTC | |
|
Re: Re: setting values in anonymous hash
by agoth (Chaplain) on Nov 28, 2000 at 18:28 UTC |