This is kinda a newbie one.
What's the difference between $array[0] and @array[0]?
I learnt that $array[0] is the first element in the array variable '@array' since day one. I have never seen any textbooks suggest using @array[0].
But in reality, I have seen both $array[0] and @array[0]. So, are they identical? If not, which one is better and why? A piece of sample codes to demo the difference is highly appreciated.
What's the difference between $array[0] and @array[0]?
I learnt that $array[0] is the first element in the array variable '@array' since day one. I have never seen any textbooks suggest using @array[0].
But in reality, I have seen both $array[0] and @array[0]. So, are they identical? If not, which one is better and why? A piece of sample codes to demo the difference is highly appreciated.