adrya407 has asked for the wisdom of the Perl Monks concerning the following question:
How can I acces the "stepxxx"? I need to acces it's name and verify if it equals a variable $x like this:$VAR1 = { 'opt' => { 'step820' => '0', 'step190' => '0', 'step124' => '0', 'step127' => '0', 'step410' => '0', 'step015' => '2', 'step130' => '1', 'step013' => '0', 'step715' => '0', 'step540' => '0', 'step800' => '5', 'step135' => '0', 'step003' => '0', 'step455' => '0', + } };
if $stepxxx eq $x{ #do something; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can I acces the "member" stepxxx of the structure given below?
by Discipulus (Canon) on Feb 05, 2016 at 12:41 UTC | |
|
Re: How can I acces the "member" stepxxx of the structure given below?
by dorko (Prior) on Feb 05, 2016 at 14:23 UTC | |
|
Re: How can I acces the "member" stepxxx of the structure given below?
by GotToBTru (Prior) on Feb 05, 2016 at 12:54 UTC | |
|
Re: How can I acces the "member" stepxxx of the structure given below?
by swampyankee (Parson) on Feb 05, 2016 at 18:55 UTC | |
|
Re: How can I acces the "member" stepxxx of the structure given below?
by Laurent_R (Canon) on Feb 05, 2016 at 17:54 UTC |