Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: The third 'if'

by Zaxo (Archbishop)
on Jan 26, 2004 at 01:28 UTC ( [id://324046]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ( lines_to_read() ) {
        if ( the_line_is_the_right_header()) {
            if ( the_line_also_has_impressions) {
    ...
            }
        }
    }
    
  2. or download this
    while (files_to_read()) {
         next unless the_line_is_the_right_header();
         while ( lines_to_read() ) {
    ...
             last;    # no need to look further in this file
         }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://324046]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-03-28 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found