This is a very basic question on arrays and referring to the elements. In referring to the elements, I know that it is correct practice to use $ instead of @, but I know that Perl allows the @. My simple question is what is the difference. I have looked at different Perl tutorials, but have not found one that explains why to use $ over @. Is it just common practice, or is there a functional reason? Tim
Quick example: my @animals = ("dog","cat"); my $arrayCounter = @animals; for (my $count=0;$count<$arrayCounter;$count++) { print "Critter is $animals[$count]\n"; # use $animals instead of @animals } -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/