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


in reply to Re: How to store matched $1 values one by one to array?
in thread How to store matched $1 values one by one to array?

I forgot to add that array line in my code. Now I have added that line in my first question. Sorry for the inconvenience.