in reply to Re: Problem with subroutine
in thread Problem with subroutine

Cleaned it up..it works! I think the critical error was that i used '[]' for the hash unknowingly..though i am still surprised the program ran for the 1st array.perl indeed is quite forgiving :)will use strict from now onwards.