in reply to How to access a variable inside subroutine?
Respected Monks,
Thank you for your replies. I tried the last one suggested by pryrt and it worked!!
Truly thankful that so many of you took time to reply. The perlmonks is truly a great forum.