in reply to Perl XML "dynamic paths "?

What you wrote already works, you just need to correct the syntax:
$data->{root}->{configs}->{$VAR}->{region_prefix}
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.

Replies are listed 'Best First'.
Re^2: Perl XML "dynamic paths "?
by kazak (Beadle) on Aug 23, 2012 at 08:58 UTC
    Thanks to you too, it helped.