in reply to HTML image tag stripping
$i has not been declared within that block. This is probably where your error is coming from. It is certainly not doing what you want. How about:
foreach ( @htmlLines ) { # do stuff with $_ }
may be re-written as print for @htmlLinesfor my $i (0..@htmlLines-1) { print $htmlLines[$i]; }
|
|---|