At 09:03 AM 5/17/2001 +0100, Alberto Manuel Brandao Simoes wrote:

>         Hellows
>
>         I'm writing a module and, as all modules should be, I'm using 
> strict. So, I
>need to 'declare' every variable. What I want, is to do something like:
>
>         $varname = "myvar";
>         @$varname = ('a','b','c');
>
>         This sets @myvar as I want, but how can I do this with strict??
>
>         my $varname = "myvar";
>         my @$varname = ('a','b','c');
>
>         This does not works.

See perlfaq7, "How can I use a variable as a variable name?"

(Type "perldoc perlfaq7")

Reply via email to