[html-formfu] H:F:M:DBIC condition_from_stash

Gabor HALASZ halasz.g at freemail.hu
Tue Jan 11 19:27:22 GMT 2011


2011.01.11. 16:39 keltezéssel, Ronald J Kimball írta:
> On Tue, Jan 11, 2011 at 8:21 AM, Gabor HALASZ <halasz.g at freemail.hu
> <mailto:halasz.g at freemail.hu>> wrote:
>
>
>     I think, simply on wrong place and checks wrong variable, the
>     correct is:
>
>     for my $name ( keys %$from_stash ) {
>
>         croak "config value must not be a reference" if ref $name;
>
>
> Checking whether $name is a reference wouldn't make sense.  It's a hash
> key, so we already know it's a string.
>
Sure, sorry. Of course, I think:

croak "config value must not be a reference" if ref $form_stash->{$name};




More information about the HTML-FormFu mailing list