in reply to Double quoted string as method call
Update As other people below be have mentioned, the code I posted here doesn't work at all. That's what happens when I post just before leaving work. My code does work with a hashref, but does nothing for a method call. D'oh.
I'm going to take a stab at this and say that you need braces around the call, like so:
$caller->{"database_${_}"}()
I haven't actually tested this, but it compiles cleanly. More knowledgeable monks will probably have a better solution and explanation.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Double quoted string as method call
by BUU (Prior) on May 04, 2004 at 22:05 UTC | |
|
Re: Re: Double quoted string as method call
by ryantate (Friar) on May 04, 2004 at 22:02 UTC |