mm&mm has asked for the wisdom of the Perl Monks concerning the following question:
Then I open the file and read the contents into an array... Is there a simpler way to do this? Something like dumping directly to an array?my $tree = HTML::TreeBuilder->new(); $tree->parse_file($daactualfile); $tree->objectify_text(); open OUT,"> $output_temp_file" or die "cannot open $output_temp_file $ +!\n"; $tree->dump(*OUT); close OUT;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::TreeBuilder. Redirect tree->dump to an array
by Corion (Patriarch) on May 05, 2008 at 10:04 UTC | |
by mm&mm (Initiate) on May 05, 2008 at 10:56 UTC | |
|
Re: HTML::TreeBuilder. Redirect tree->dump to an array
by tachyon-II (Chaplain) on May 05, 2008 at 10:53 UTC | |
by mm&mm (Initiate) on May 05, 2008 at 11:11 UTC |