Help for this page

Select Code to Download


  1. or download this
    if ($class->_is_start_pattern($line)) {
      # we have found the start of a customer record
    ...
      #return ($line =~ $class::START_PATTERN);
    }
    ...
    
  2. or download this
    sub START_PATTERN {
      return qr(^(\d)\s+\1$);
    }
    
  3. or download this
    sub END_PATTERN_1 {
      return qr(^<pattern for this division>$);
    }
    
  4. or download this
    if ($class->_is_end_pattern_1($line) ||
        $class->_is_end_pattern_2($line)) {
      ...
    }