The stupid question is the question not asked | |
PerlMonks |
Re^5: Creating flexible method accessorby Anonymous Monk |
on Feb 02, 2014 at 03:50 UTC ( [id://1073026]=note: print w/replies, xml ) | Need Help?? |
${path} is really just a different way of writing $path:
As for making it more flexible: let's say you've got your "path" in an array @path, one way to walk your data structure is: $self = $self->{$_} for @path;
In Section
Seekers of Perl Wisdom
|
|