Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl Monk, Perl Meditation
 
PerlMonks  

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

by choroba (Abbot)
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 surveying the Monastery: (11)
As of 2014-04-18 21:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (472 votes), past polls