Hi... thanks for the answer.. Actually the problem is the are a few blank lines at the end of the input file.. So after the last // there are a few blank lines which is impossible to be deleted for every case. eg:
DR Pfam; PF00087; toxin; 1. DR PRINTS; PR00282; CYTOTOXIN. DR ProDom; PD000206; Snake_toxin; 1. DR PROSITE; PS00272; SNAKE_TOXIN; 1. KW Venom; Cytotoxin; Cardiotoxin; Multigene family; 3D-structure; Si +gnal. FT SIGNAL 1 21 FT CHAIN 22 81 CYTOTOXIN 2. FT DISULFID 24 42 // RA Jeyaseelan K., Armugam A., Lachumanan R., Tan C.H., Tan N.H.; RT "Six isoforms of cardiotoxin in malayan spitting cobra (Naja naja RT sputatrix) venom: cloning and characterization of cDNAs."; RL Biochim. Biophys. Acta 1380:209-222(1998). RN [6] RP SEQUENCE FROM N.A. RC SPECIES=N.n.kaouthia; TISSUE=Venom gland; RA Li K.J., Wei J.F., Jin Y., Lu Q.M., Xiong Y.L., Wang W.Y.; RT "Molecular cloning and sequence analysis of cDNA of cytotoxin ana +log RT of Naja kaouthia."; // ##there are a few blank lines here
When I eliminated the blank line... things goes just as expected. Is there something to handle this kind of situation? Thanks a lot..

In reply to Re: Re: hm strange loop for me.. by agustina_s
in thread hm strange loop for me.. by agustina_s

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.