G
Gareth Mottram - RSG
Hi all I am having a bit of a problem in putting an array into a hash
structure
<snip>
for($n=0;$n <= 10;$n++)
{
$l[$n]=$n;
}
%current=();
$current{cloud}=(@l);
@x=(@l);
print " @x\n";
print $current{cloud};
</snip
@x happily contains the results of the loop whereas $current{cloud}
stubornly refuses to contain anything but the scalar of the list.
I am now very confused and my brain has melted and leaked all over the
table. Can anyone explain where I am making<pun> a hash of this?</pun>
cheers
g
--
Gareth N. Mottram
Support Officer
Remote Sensing Data Analysis Service
Plymouth Marine Laboratory
Prospect Place
Plymouth
Devon, PL1 3DH
UK
Tel : ++44 (0)1752 633485
Fax : ++44 (0)1752 633101
E-mail: (e-mail address removed)
Web : http://www.npm.ac.uk/rsdas/
Registered Charity No. 1091222
Company No. 4178503
structure
<snip>
for($n=0;$n <= 10;$n++)
{
$l[$n]=$n;
}
%current=();
$current{cloud}=(@l);
@x=(@l);
print " @x\n";
print $current{cloud};
</snip
@x happily contains the results of the loop whereas $current{cloud}
stubornly refuses to contain anything but the scalar of the list.
I am now very confused and my brain has melted and leaked all over the
table. Can anyone explain where I am making<pun> a hash of this?</pun>
cheers
g
--
Gareth N. Mottram
Support Officer
Remote Sensing Data Analysis Service
Plymouth Marine Laboratory
Prospect Place
Plymouth
Devon, PL1 3DH
UK
Tel : ++44 (0)1752 633485
Fax : ++44 (0)1752 633101
E-mail: (e-mail address removed)
Web : http://www.npm.ac.uk/rsdas/
Registered Charity No. 1091222
Company No. 4178503