The Ghost wrote:
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});
}

foreach my $col (@columns) {
        push @graph, $col => { string => $col, number = \{$col} };
}


--
END
------------------------------------------------------------
    What doesn't kill us can only make us stronger.
                Nothing is impossible.
                                
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
  http://www.liquidityservicesinc.com
       http://www.liquidation.com
       http://www.uksurplus.com
       http://www.govliquidation.com
       http://www.gowholesale.com


--
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