in reply to Perl XML "dynamic paths "?
Better style:$data->{root}->{configs}->{$VAR}->{region_prefix}
PS: Future-proof your program by enabling strict mode. This ensures you get the same data structure even when the number of elements change.$data->{root}{configs}{$VAR}{region_prefix}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl XML "dynamic paths "?
by kazak (Beadle) on Aug 23, 2012 at 08:58 UTC |