Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Without looping over the hashref.my $fields = { 'field1' => { 'maxlength' => 20, }, 'field2' => { 'maxlength' => 100, }, }; # something like this if ('field1' eq "key of $fields") { # do something }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Something eq hashref key
by haukex (Archbishop) on Mar 25, 2019 at 13:44 UTC | |
by LanX (Saint) on Mar 25, 2019 at 14:06 UTC | |
by hdb (Monsignor) on Mar 25, 2019 at 14:17 UTC | |
by LanX (Saint) on Mar 25, 2019 at 14:59 UTC | |
by Anonymous Monk on Mar 25, 2019 at 13:51 UTC |