Re: Variables within variables.

Bruno Postle <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
I was just fixing some (really stupid) mistakes in the Petal 
QUICKSTART pod documentation and found the answer to this question.

On Tue 17-May-2005 at 20:35 -0400, Josh Narins wrote:
>
> What I want, in perl, would look like this.
>
> $tal->{onething}->{ $tal->{otherthing} }
>
> I tried
>
> string:stuff${onething/${otherthing}}
>
> but it didn't work.
>
> Is this supported, or should I work around?

The Petal docs say this:

       You cannot write nested expressions such as:

          ${my_var/hello_world ${my_var/current_user}}

       This will NOT work. At least, not yet.

So I guess that means you can't :-P

-- 
Bruno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.