http://www.perlmonks.org?node_id=1071073


in reply to Re^2: how to find the how many elements are present in an array
in thread how to access each element in an array?

Your $array[0] is not an array but a (scalar) string. see How can I access or change N characters of a string?. Me, too, wanted to point you to perlintro, but perhaps you should have a glance at perldsc and - more importantly - on How do I post a question effectively?