in reply to An interesting Perl problem to extract file content

Are you guaranteed the two strings will be the same length? Are you guaranteed they will initially match? If When they disagree, which is "the standard" and which is "in error"?

As Occam said: Entia non sunt multiplicanda praeter necessitatem.

  • Comment on Re: An interesting Perl problem to extract file content

Replies are listed 'Best First'.
Re^2: An interesting Perl problem to extract file content
by Anonymous Monk on Dec 08, 2010 at 21:58 UTC
    hi thanks for your reply..here's another small example..

    >first

    ACCGG

    ATGTTG

    GCCTAA

    >firsta

    ACCGG

    A--TTG

    --CTAA

    Here..everything in >first and >firsta is similar except the ---- part. So Perl should extract : TG GC from >first
      No..strings won't be always of same length or line..