Dave Gray wrote:
This is the multi line pattern in which I wish to match:
<tr>
<td><b> String 1.2.3.4.5.6 </b></td>
<td><img src="pics/green.gif" alt="OK"></td>
<tr>
One way to solve this would be to read lines from the file and save
chunks of N lines (4 in this case) in a temp variable. Then your regex
would operate on enough of the file to have a chance of working.
Something like (untested):
my (@lines, $num) = ((), 4);
You are assigning the list ((), 4) to @lines and nothing to $num. Perhaps
you
meant:
my ( $num, @lines ) = ( 4, () );
Or simply:
my ( $num, @lines ) = 4;
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>