On Monday, August 23, 2004 3:12 AM, Edward Wijaya wrote:
> @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).

($a,$b,$c) = @array;


Jeremy Kister
http://jeremy.kister.net/
Argus: The World's Most Advanced Monitoring Software:
http://argus.tcp4me.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