|We don't bite newbies here... much|
Re: Counting elements in arrayby Discipulus (Monsignor)
|on Jan 30, 2014 at 08:39 UTC||Need Help??|
you can find interesting the fact that $#array_name contain the index of the last element so that ($#array_name + 1) == scalar @array_name.
As stated wisely by some monk, in Perl context is all, as in human languages, this is powerful but not-so-easy-to-manage feature. Consider a read of context in the Modern Perl book. This book is a gem but i dont suggest as a first Perl read: i prefer Perl Cookbook, albeit a little ancient book but a wonderful introduction by examples to many fields where Perl rocks.
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.