Hi Kyle
Thanks for your reply.
If I have the following
my @List ( 'one' , 'two' , 'three' ) ;
foreach ( @List ) {
print $_ . "\n" ;
}
it will print
one
two
three
I thought that Perl had another internal variable that contained the
numerical index of each array entry without having to count them. I guess
what I thought was happening internally was that Perl was maintaining an
index of @List and returning @List[index] when in fact Perl is internally
making a copy of @List and popping each entry off the copied list.
Bill Conrad
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs