Help for this page

Select Code to Download


  1. or download this
    while (<>) {  # or maybe using a file handle, like <IN>
       # do stuff...
    }
    
  2. or download this
    while (<>) {
        next if ( /^\s*;/ );  # skip if first non-space char is ";"
        # now do stuff...
    }
    
  3. or download this
    while (<>) {
        next if ( /^\s*;/ or /;;/ );
        # now do stuff...
    }
    
  4. or download this
        ^    -- line begins with...
        \s*  -- zero or more white-space characters
        ;    -- followed by a semi-colon
    or
        ;;   -- there are two semi-colons together anywhere in the line