How can I do this correctly?

foreach my $col (@columns) {
my %{$col} = ( # <-- I have a problem here, I want the hash to be named whatever "$col" is
                        string => "$col",
                        number => [EMAIL PROTECTED]
                        );
              push (@graph, \%{$col});
}

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to