in reply to Re: Double quoted string as method call
in thread Double quoted string as method call

Close Zaxo, I think you were looking for $obj->${\"text_$_"}() (note the reference taken).

Replies are listed 'Best First'.
Re: Re: Re: Double quoted string as method call
by ryantate (Friar) on May 05, 2004 at 18:42 UTC

    Thank you!

    I have compiled and run and tested, and it does seem this works!

    It doth confuse cperl-mode in emacs, tho!

    Cperl-mode understands $caller->$ {\ "database_$_"}() (note spacing) just fine, however.

    Whether humans will be able to parse such funny spacing remains to be seen ;->