Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

next line

Status
Not open for further replies.

Yarka

Technical User
Joined
Jan 14, 2007
Messages
192
Location
ES
Hi,

I've my script as:

my $aa = "aa";
while (<>){
if (/^(\d+)\t$aa\t.*?\t(\d+:\d+)\t/) {
...
}
...
}

After if (/^(\d+)\t$aa\t.*?\t(\d+:\d+)\t/), I need to take out data to the next line of the input's file. How can I go next line on Perl?

Thanks.
 
or maybe:

Code:
my $aa = "aa";
while (<>){
    if (/^(\d+)\t$aa\t.*?\t(\d+:\d+)\t/) {
       $next_line = <>;
    }
}


------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top