Help for this page

Select Code to Download


  1. or download this
    while () {
        $_ = substr($records, $p, index($records, "\n", $p) - $p);
    ...
    while ($records =~ /(.*?)\n/g) {
        # do whatever with data now in $1
    }
    
  2. or download this
    for (split(/\n/, $records)) {
        # do whatever with data now in $_
    }