did U try this: ($a,$b,$c) = @array;
----- Original Message ----- From: "Edward Wijaya" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 23, 2004 12:42 PM Subject: Assigning fix elements of array into fix variables efficiently > > Hi, > > Suppose I have this array: > > @array = (10,11,12) #fix to three element > > is there any way I can assign each any of these > elements into variable ($A, $B, $C) in a quick way. > Such that $A = 10, $B =11, $C=12 (this is fixed). > > The way I can think of is : > > $A = @array[1], etc.....But this isn efficient. > > Thanks before hand. > Hope to hear from you again. > > Regards, > Edward WIJAYA > SINGAPORE > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
