in reply to variable inside hash key
use warnings; use strict; my $pic = 1; my $v = {R3R3_1_IF => 555}; my $key = "R3R3_${pic}_IF"; print "set groups interfaces $v->{$key}\n"; __END__ set groups interfaces 555
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: variable inside hash key
by Anonymous Monk on Mar 30, 2016 at 01:12 UTC | |
|
Re^2: variable inside hash key
by Anonymous Monk on Apr 06, 2016 at 05:55 UTC | |
by hippo (Archbishop) on Apr 06, 2016 at 08:47 UTC | |
by Anonymous Monk on Apr 06, 2016 at 11:13 UTC | |
by Anonymous Monk on Apr 06, 2016 at 12:23 UTC | |
by Anonymous Monk on Apr 07, 2016 at 04:54 UTC |