in reply to Re: How do I read the contents of an HTML file between two BODY tags?
in thread How do I read the contents of an HTML file between two BODY tags?
open(HTML,"test.html") || die "cant open file\n"; while(<HTML>){ if(/<body.*?>/i ... /<\/body.*?>/i){ s/\<\/*body.*?>//ig; # Strip body tags from $_ print OUTFILE $_; } } close HTML;
|
|---|