Thanks Chris I try this and works

  $. = 0;
        do
        {
                $_ = <INPUT>
        }
        until $. == 5;

WHILE <INPUT>
{
        Do_whatever_you_like_begining_after_line_5();      :-)
}

Chris Devers wrote:
On Wed, 29 Sep 2004, Eduardo V�zquez Rodr�guez wrote:


I have a question, how do I open a file in a specific line number, for example
I want to open a text file exactly on line number 5,


What have you tried so far?

What problems did you have?

Show us what you've tried and we can make suggestions.





-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to