in reply to Re: Redirect HTML::TreeBuilder to file
in thread Redirect HTML::TreeBuilder to file
Hi choroba,
Where would I put this in the code to build the tree?tried it here but it did not work:
else { # If $node is not a reference, then it is just a piece of text # from the HTML file. # print $node, "\n"; open my $out, '>', 'output.html' or die $!; print {$out} "This will be printed to the file.\n"; close $out; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Redirect HTML::TreeBuilder to file
by marto (Cardinal) on Sep 25, 2018 at 13:23 UTC | |
by TonyNY (Beadle) on Sep 25, 2018 at 13:39 UTC | |
by marto (Cardinal) on Sep 25, 2018 at 13:51 UTC |