in reply to Re^5: readline() on unopened filehandle
in thread readline() on unopened filehandle
foreach (@files) { $FH = $_; open (FILE, "<$FH"); OUTER: while ((<FILE>)) { $line_B = $_; $batch .= $line_B; last if eof; last if ($line_B =~ m/^\s*go\s*$/i); } $dbh->do($batch) if ($line_B =~ m/^\s*go\s*$/i); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: readline() on unopened filehandle
by fishbot_v2 (Chaplain) on Oct 07, 2005 at 15:01 UTC | |
|