D
darren_uk
I'm completely new to Perl.
I've just read an introduction to arrays (in man perlintro).
It explains that to get a single value from an array, use the scalar prefix
"$"
E.g.,
$array[0]
Later it explains that to get multiple values, use the array prefix "@"
E.g.,
@array[0,1]
Is there any difference between:
$array[0]
and
@array[0]
I've just read an introduction to arrays (in man perlintro).
It explains that to get a single value from an array, use the scalar prefix
"$"
E.g.,
$array[0]
Later it explains that to get multiple values, use the array prefix "@"
E.g.,
@array[0,1]
Is there any difference between:
$array[0]
and
@array[0]