I can't even get this to run. I get the following run-time error:
Argument "&#9563;¡¡&#9563;ª&#9579;&#9575;ç&#9580;&#8359;M-^]&#9577;&#9 +556;Ö&#9567;&#9555;" isn't numeric in numeric ne (!=) at checkme.pl l +i ne 29, <INPUT> line 2.
So I rewrote it a bit:
#!/usr/bin/perl -w use strict; my $ex_line = q(perl -ne "if (/(\d{6})_/g){ chomp;print qq($1,),(split +/;/,$_)[-1],qq(\n)};" input.dat); my $stuff = `$ex_line`; my %hash; for (split /\n/, $stuff) { my @arr = split/,/,$_; push @{$hash{$arr[0]}} , $arr[1]; } foreach (keys %hash) { print "$_\t" . join / /, @{$hash{$_}} , qq(\n); } 1;
With the following data:
>probe:ATH1-121501:244901_at:594:703;Interrogation_Position=56;Antisen +se;TTGCTGCTATTCTATCTATTTGTGC Times 11 >probe:ATH1121501:244902_at:522:511;Interrogation_Position=153;Ant +isense;GGTATTTTCCGTTTCTTCGGATGAT Times 11 >probe:ATH1121501:244902_at:522:511;Interrogation_Position=153;Ant +isense;GGTATTTTCCGTTTCTTCGGATGAT Times 11 >probe:ATH1121501:244902_at:522:511;Interrogation_Position=153;Ant +isense;GGTATTTrCCGTTTCTTCGGATGAT Times 11 >probe:ATH1121501:244902_at:522:511;Interrogation_Position=153;Ant +isense;GGTATTfTCCGTTTCTTCGGATGAT Times 11 >probe:ATH1121501:244902_at:522:511;Interrogation_Position=153;Ant +isense;GGTATTTnCCGTTTCTTCGGATGAT Times 11 >probe:ATH1121501:244902_at:522:511;Interrogation_Position=153;Ant +isense;GGTATTTTCCGuTTCTTCGGATGAT Times 11 >probe:ATH1121501:244902_at:522:511;Interrogation_Position=153;Ant +isense;GGTATTTTiCGTTTCTTCGGATGAT Times 11
And I get:
244901 TTGCTGCTATTCTATCTATTTGTGC 244902 GGTATTTTCCGTTTCTTCGGATGATGGTATTTTCCGTTTCTTCGGATGATGGTATTTrCCGT +TTCTTCGGAT GATGGTATTfTCCGTTTCTTCGGATGATGGTATTTnCCGTTTCTTCGGATGATGGTATTTTCCGuTTCTT +CGGATGATGG TATTTTiCGTTTCTTCGGATGAT
I also get a nasty little warning about my ``. Something is not escaped :( You should probably rewrite that inside of the body of the code anyway.

Celebrate Intellectual Diversity


In reply to Re: Why is it matching?? by InfiniteSilence
in thread Why is it matching?? by bioinformatics

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.