> Hi,
> I am writing an application where i have to read
> from a file variable names and variable values.
> Is there is a way to use Variable Variables  with
> the same way used in php?
> For example:
> $a = "hello";
> $$a = "world";
> where echo "$a ${$a}";  and  echo "$a $hello";  would output the same.
> Thanks in advance,
>    Demetris.

You can actually execute the above php code
under perl and it will work!

(You need to add

    sub echo ($) { print shift }

at the start to let perl know what to do with
echo, or you could just replace 'echo' with
'print'.)

Reply via email to