dear Perl experts,

my @array;
$array[0] = split(' ','apples trucks');
$array[1] = split(' ','cars oranges');

i want to get "apples" from print $array[0][0] or print $array[0]->[0] but they don't work.

if i do
    print $array[0]
i get "2", the size of the array.

i thought $array[0] was a scalar reference to an anonymous array and
that this meant
        $array[0][0]
would "dereference" to "apples". but no luck.

thanks for any pointers! (ouch)

Seamus


-- 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