Help for this page

Select Code to Download


  1. or download this
    while (length $source) {
      # make only one split (creating 2 parts)
      (my($rec),$source) = split /;/, $source, 2;
      # ...
    }
    
  2. or download this
    while (my ($rec) = $source =~ /\G([^;]*)(?:;|$)/g) {
      # ...
    }
    
  3. or download this
    use constant RE_MAGIC => bless [], 'RE_MAGIC';
    use constant C_STYLE => bless [], 'C_STYLE';
    ...
      # ...
      $rec = strtok();
    }