Win has asked for the wisdom of the Perl Monks concerning the following question:
foreach (@files) { my $FH = $_; open (FILE, "<$FH"); OUTER: while ((my $line_B = <FILE>)) { last OUTER unless defined($line_B = <$FH>); ## The message applie +s to this line my $batch; do { $batch .= $line_B; } until ($line_B =~ m/^\s*go\s*$/i); $dbh->do($batch) if ($line_B =~ m/^\s*go\s*$/i); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: readline() on unopened filehandle
by Skeeve (Parson) on Oct 07, 2005 at 11:42 UTC | |
|
Re: readline() on unopened filehandle
by Perl Mouse (Chaplain) on Oct 07, 2005 at 11:44 UTC | |
by Win (Novice) on Oct 07, 2005 at 13:44 UTC | |
by Perl Mouse (Chaplain) on Oct 07, 2005 at 13:50 UTC | |
| |
|
Re: readline() on unopened filehandle
by Zaxo (Archbishop) on Oct 07, 2005 at 11:46 UTC | |
|
Re: readline() on unopened filehandle
by blazar (Canon) on Oct 07, 2005 at 11:51 UTC | |
|
Re: readline() on unopened filehandle
by radiantmatrix (Parson) on Oct 07, 2005 at 16:03 UTC | |
|
Re: readline() on unopened filehandle
by Anonymous Monk on Oct 07, 2005 at 12:05 UTC | |
by Anonymous Monk on Oct 07, 2005 at 13:34 UTC | |
by Fletch (Bishop) on Oct 07, 2005 at 13:42 UTC | |
by Perl Mouse (Chaplain) on Oct 07, 2005 at 13:43 UTC | |
by Win (Novice) on Oct 07, 2005 at 13:52 UTC | |
by fishbot_v2 (Chaplain) on Oct 07, 2005 at 14:26 UTC | |
|