I think you want to pass a reference to the array and not the array itself

$config->{commision_distribution_chart} = [EMAIL PROTECTED];
my $aref = $config->{commision_distribution_chart};
@distribution_array = @$aref;

foreach my $bob (@distribution_array) {
        # Do something
}
 - By the way, this list is for LWP related questions.

-----Original Message-----
From: Jonathan Daigle [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 2:37 PM
To: [EMAIL PROTECTED]
Subject: $config->{commision_distribution_chart} =
@commision_distribution_chart;


hi!

ok, here what i want to do:


my @commision_distribution_chart = (0.05, 0.025, 0.015, 0.01, 0.005,
0.0025, 0.0025);

$config->{commision_distribution_chart} = @commision_distribution_chart;


#then mutch mutch later


my @distribution_array = $config->{commision_distribution_chart};

while(my $bob = shift(@distribution_array))
{
   #what in here is not inportant
}


but, it does not work!, $config->{commision_distribution_chart} ==7
whitch is the number of ellement of @commision_distribution_chart.

please help me!







Jonathan Daigle, Programmeur-analyste

Cyberon technologies inc.
1086, boul. Sacr�-Coeur
Saint-F�licien (Qu�bec) G8K 2X5
T�l�phone: (418) 679-3223 
T�l�copieur: (418) 679-4632

[EMAIL PROTECTED]

Reply via email to