in reply to Re^2: Calling a subroutine when part of call is a constant variable (symbolic method names) <2 updates>
in thread Calling a subroutine when part of call is a variable Contant
Dear Monks, Thanks for all your suggestions. I appreciate the time taken to help out. The Perl community really is the best! I figured it out, this is all I needed to get my code to execute correctly.
foreach my $val (keys ${\( STUFF() ) } ){ my $subroutine = ${\( STUFF() ) }->{ $val }; my $value = $self->xml()->$subroutine(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Calling a subroutine when part of call is a constant variable (symbolic method names) <2 updates>
by KurtZ (Friar) on May 27, 2017 at 15:28 UTC | |
by Anonymous Monk on May 27, 2017 at 16:03 UTC | |
|
Re^4: Calling a subroutine when part of call is a constant variable (symbolic method names) <2 updates>
by AnomalousMonk (Archbishop) on May 27, 2017 at 16:45 UTC |