Computing.Net > Forums > Unix > To save repeated data of a column only once

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

To save repeated data of a column only once

Reply to Message Icon

Name: vyasa
Date: June 7, 2009 at 12:04:42 Pacific
OS: Linux
Subcategory: General
Comment:

hi
i am new to perl and i want to make this work
in perl.. please help
i have a file with the following text:
john /johnsaddress/
john /johnspincode/
john /johnscity/
james /jamesaddress/
james /jamespincode/


i want to parse the file (1st column) and save
the strings only once along with their whole
data.
like above the result should be john and james
stored in some variable and their
corresponding data also stored.


thanks in advance for the help..



Sponsored Link
Ads by Google

Response Number 1
Name: ghostdog
Date: June 7, 2009 at 18:52:21 Pacific
Reply:

what have you tried? have you read Perl documentation?


0

Response Number 2
Name: vyasa
Date: June 12, 2009 at 06:29:06 Pacific
Reply:

i am trying to build a hash of arrays ....but not able to achieve
the result.


0

Response Number 3
Name: ghostdog
Date: June 12, 2009 at 08:32:32 Pacific
Reply:

type perldoc perldsc


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: To save repeated data of a column only once

To read the value of a variable www.computing.net/answers/unix/to-read-the-value-of-a-variable/5570.html

how to identify the size of a file www.computing.net/answers/unix/how-to-identify-the-size-of-a-file-/7523.html

Saving Output of Sed www.computing.net/answers/unix/saving-output-of-sed/7542.html