Hello everyone
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,
Thanks in advanced
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/>
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
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
From: Eduardo Vázquez Rodríguez
<[EMAIL PROTECTED]>
> Thanks Chris I try this and works
>
>$. = 0;
> do
> {
> $_ =
> }
> until $. == 5;
Looks a bit too involved. Why not just
for (1..5);
?
> WHILE
I believe you meant