in reply to @array[1] is valid??
You are printing a single-element array slice. Perhaps this will make more clear what is happening.
my @foo = (1,2,3); print "@foo[1,2]\n"; #prints: 2 3
------------------------------------------------------------
"Perl is a mess
and that's good because the
problem space is also a mess." - Larry Wall
In Section
Seekers of Perl Wisdom