in reply to read multiple lines

But still am not able to get the desired output.. could u please help me... Many thanks in advance.
No. See How do I post a question effectively?, read multi lines of a file in perl.

Replies are listed 'Best First'.
Re^2: read multiple lines
by gone2015 (Deacon) on Nov 14, 2008 at 00:57 UTC

    I knew this question seemed familiar: read multi lines of a file in perl -- well remembered brother Anonymous Monk.

    Same OP, too !

    For a moment there I thought this might be coursework. Looks as though the previous answers failed to grasp the subtlety of the problem ?