Choosing only numbers from the output
From: Sudhindra K S (sudhindra_k_s_at_rediffmail.com)
Date: 08/04/04
- Next message: Gunnar Hjalmarsson: "Re: Choosing only numbers from the output"
- Previous message: Jose Alves De Castro: "Re: Return values of "system""
- Next in thread: Gunnar Hjalmarsson: "Re: Choosing only numbers from the output"
- Reply: Gunnar Hjalmarsson: "Re: Choosing only numbers from the output"
- Reply: John W. Krahn: "Re: Choosing only numbers from the output"
- Reply: Ronald Yacketta: "RE: Choosing only numbers from the output"
- Reply: Christopher J. Bottaro: "Re: Choosing only numbers from the output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 4 Aug 2004 09:48:05 -0000 To: beginners@perl.org
Hi
I have an output which looks like this:
Tag : Result
146603 :
147020 :
147155 : NONE
147160 :
147232 :
147243 :
147254 : none
147318 :
147341 : NONE
147430 : N/A
147708 :
147710 : 0000
147729 :
147768 :
147851 :
147921 :
147949 : 0000
147981 :
147983 :
147991 :
148007 : 0000
148080 :
148105 :
148200 :
148312 : 38160
148329 : 44139
148444 : NONE
148514 :
148573 : 0000
148697 :
148759 :
148919 :
148920 :
148921 :
148923 :
148924 :
148933 :
148934 :
148935 :
148936 :
148937 :
148938 :
148939 :
148951 :
148996 :
Now i want to gather all the "Tags" for which the "Result" is a number (but shouldnt include the tag if the result is 0). The corresponding Result should go to another array.
Considering the above example my array1 should contain 148312 and 148329 and array2 should contain 38160 and 44139
How do i do this?
Thanks in advance
Regards
Sudhindra
- Next message: Gunnar Hjalmarsson: "Re: Choosing only numbers from the output"
- Previous message: Jose Alves De Castro: "Re: Return values of "system""
- Next in thread: Gunnar Hjalmarsson: "Re: Choosing only numbers from the output"
- Reply: Gunnar Hjalmarsson: "Re: Choosing only numbers from the output"
- Reply: John W. Krahn: "Re: Choosing only numbers from the output"
- Reply: Ronald Yacketta: "RE: Choosing only numbers from the output"
- Reply: Christopher J. Bottaro: "Re: Choosing only numbers from the output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]