Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: difficulty in matching 2 fields of a same line

by choroba (Canon)
on Jun 27, 2012 at 17:23 UTC ( #978723=note: print w/ replies, xml ) Need Help??


in reply to difficulty in matching 2 fields of a same line

Perl numbers arrays from 0, so 3rd and 11th positions are [2] and [10].


Comment on Re: difficulty in matching 2 fields of a same line
Select or Download Code
Re^2: difficulty in matching 2 fields of a same line
by Anonymous Monk on Jun 27, 2012 at 17:35 UTC

    ya by considering that only i gave 3.
    4829:71370 [0]
    1:N:0:CGATGT 1
    + 2

      Oh, I see. Can you give an example of a line that is being printed, but should not be? It seems to work for me. Please, use <c> tags around the data as well as code.

        its working for me wen the positions are same but for few in a file wer the positions are changing how to deal with them there might be 30-40 lines with varied positions hw do i deal with them.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://978723]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (16)
As of 2015-07-02 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (45 votes), past polls