I have a hash that i needed to put into a 2d array. I wound up doing this...
foreach $key (keys(%temp)){ push(@graph_key,$key); push(@graph_value,$temp{$key}); }
$data[0] = [EMAIL PROTECTED]; $data[1] = [EMAIL PROTECTED];
Though Im not quite sure why i need to escape the @?
You are not escaping @ here , you are taking the reference to the object
If you come from the c/c++ world you might understand reference like the & operator in scanf("%d",&intvar);
but it works :)
thanks, jd
On Tue, 2003-04-01 at 03:19, Aim wrote:
Hi,form...
Here is one way to build a hash:
my %data = ( "12am" => "251", "1am" => "102" ); etc.
Regards.
################################################################# jdavis wrote:
hello, I have a hash. To use this hash with a module I need it in this
key@data = ( ["12am","1am","2am","3am","4am","5am","6am", "7am", "8am"], ###
###val[ 251, 102, 55, 36, 113, 200, 32, 99, 4],
);
I confused.. How could I get a hash to the above structure
Thanks, -- jd [EMAIL PROTECTED]
Bad spellers of the world untie!
"I can't tell if I have worked all my life or if I have never worked a single day of my life" Miguel de Icaza
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]