Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: difficulty in matching 2 fields of a same line

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


in reply to Re^2: difficulty in matching 2 fields of a same line
in thread difficulty in matching 2 fields of a same line

Let a regex find what you need

my @cmp = $line[$i] =~ /\tchr([0-9]+)\t/g; if (2 == @cmp and $cmp[0] != $cmp[1]) { print $line[$i]; }


Comment on Re^3: difficulty in matching 2 fields of a same line
Download Code
Re^4: difficulty in matching 2 fields of a same line
by Anonymous Monk on Jun 27, 2012 at 18:34 UTC

    hey thanks for that u guys are really amazing!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2015-07-01 23:10 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 (24 votes), past polls