in reply to Unable to store value in array??

G'day Rachit,

Welcome to the Monastery.

Take a look at "perlintro -- a brief introduction and overview of Perl". That should probably have everything you need; if not, follow the links therein for more information, as required.

Also, when posting here, please wrap data and code in <code>...</code> tags. That way, we can see the same thing as you. For instance, with what you've currently posted, we see name.txt as

Name(1)=abc Name(2)=xyz Name(3)=abc

However, I wonder if you're actually seeing

Name(1)=abc Name(2)=xyz Name(3)=abc

The code to handle those two file formats will be different.

— Ken

Replies are listed 'Best First'.
Re^2: Unable to store value in array??
by Rachit (Initiate) on Dec 11, 2015 at 18:19 UTC
    Hi Ken Thanks for your reply... I m looking for <Name(1)=abc> <Name(2)=xyz> <Name(3)=abc>