Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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

by Anonymous Monk
on Jun 27, 2012 at 17:35 UTC ( #978728=note: print w/replies, xml ) Need Help??

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

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

  • Comment on Re^2: difficulty in matching 2 fields of a same line

Replies are listed 'Best First'.
Re^3: difficulty in matching 2 fields of a same line
by choroba (Chancellor) on Jun 27, 2012 at 17:42 UTC
    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.

        Do you mean that there are lines where you want to compare fields 3 and 11, and other lines where you want to compare, say, 6 and 8, and others where fields 2 and 9 are relevant? If that's what you mean, then I suggest you provide us with the rules that decide which fields are of relevance. If this is not what you mean, then yeah, maybe you should give us an example to show what you mean.

        Can you give an example?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://978728]
[haukex]: But I was just using it as an author test anyway
[Corion]: haukex: Aaah - I thought you were still running these tests on every machine, but you only run these as author or Devel::Cover tests
[Corion]: haukex: Yeah, I think back then I used Test::Inline, which used a pod parser that was going through some changes and I didn't want to cater for all the various versions and thus stopped testing the Pod completely
[choroba]: I usually do this with presentations
[Corion]: But now I think statically (re)generating the Pod tests is a saner approach, and likely I'll regenerate the tests either in Makefile.PL or from xt/ but have them live below t/
[choroba]: I keep the snippets in files of their own, and use a Makefile to syntax highlight them and insert them into slides, while also running them and inserting the output if required
[Corion]: choroba: Ooooh - I didn't think of that! I write my presentations as POD and if it "roughly" looks like Perl code, I should also syntax-check that...
[haukex]: Yes sorry I don't run them all the time, my POD tests are only run as author tests (and are excluded when I'm using Devel::Cover)
[Corion]: choroba: Hmm - no, I keep the snippets inline, but as my framework also has support for capturing output etc., maybe I should do the same...
[Corion]: haukex: Yes, that approach is sane, and it heals the fragility of Pod parsers in a nice way while still syntax-checking stuff

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2017-02-27 12:25 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (385 votes). Check out past polls.