Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: Untillian Headache or about the semantic of until

by BrowserUk (Pope)
on Feb 11, 2013 at 20:33 UTC ( #1018236=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (
        ! $no_error_opening_file
        and !( eof and $need_not_process_beyond_eof )
        and ! $found_all_elements_I_was_looking_for 
    ) {
    
  2. or download this
    until( 
        $no_error_opening_file 
        or ( eof and $need_not_process_beyond_eof )
        or $found_all_elements_i_was_looking_for 
    ) {
    
  3. or download this
    open FH ... or die ...;
    while( <FH> ) {
        my $foundEverything = processLine( $_ );
        last if $foundEverything;   
    }
    
  4. or download this
    open FH ... or die ..;
    until( eof FH ) {
    ...
        my $foundEverything = processRecord( $line1, $line2 );
        last if $foundEverything;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2015-07-30 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls