Hi,
I am a new program in Perl. I wrote a program that i find not so nice (Because i needed something fast).
I would like to store some data:
Name FileIndex Time JD
ABRA 1 02:326:00000 28345984
CACH 1 02:338:00000 34325435
ABRA 2 05:165:00000 56454766
ABRA 3 07:054:00000 73450985
only FileIndex and JD are a scalars and the others are strings. I wrote just 2 different names, but there could be more. This data o read from a different files and after that i would like to sort the data first by Name and then by JD.
My question is in which way should i store my data in order to use the powerful tool of hash in Perl? Because i would like to do some query if for instance ABRA exists more then once or not...
Thanks for your help
I am a new program in Perl. I wrote a program that i find not so nice (Because i needed something fast).
I would like to store some data:
Name FileIndex Time JD
ABRA 1 02:326:00000 28345984
CACH 1 02:338:00000 34325435
ABRA 2 05:165:00000 56454766
ABRA 3 07:054:00000 73450985
only FileIndex and JD are a scalars and the others are strings. I wrote just 2 different names, but there could be more. This data o read from a different files and after that i would like to sort the data first by Name and then by JD.
My question is in which way should i store my data in order to use the powerful tool of hash in Perl? Because i would like to do some query if for instance ABRA exists more then once or not...
Thanks for your help