Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: The third 'if'

by Zaxo (Archbishop)
on Jan 26, 2004 at 01:28 UTC ( #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? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2023-06-05 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (25 votes). Check out past polls.

    Notices?