Hello

Can someone the reasoning why it is technically correct that when extracting a scalar item from an array that one must use $array_name[$index] instead of @array_name[$index] ? To me, the logical way is to use the array name with the symbol of array. It is my understanding that using $var_name = [EMAIL PROTECTED] will produce an array of one item. I would think it would produce a string. I would think that if you wanted an array of 1 item you would do @new_array = [EMAIL PROTECTED]

Thanks,
Andrew


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to