laziness, impatience, and hubris | |
PerlMonks |
Re: about retrieving and parsing html without writing on diskby LanX (Saint) |
on Apr 09, 2018 at 22:15 UTC ( [id://1212613]=note: print w/replies, xml ) | Need Help?? |
hmm, I'm too busy to install the modules, but it's at least possible to open a variable for reading and writing. open my $fh , "<", \$cache so if you can operate with filehandles instead of files this should work.
updateHTML::Parser allows ->parse_file($fh) and even ->parse($string)
updateMaybe have a look at $string = $mech->content(...) from WWW::Mechanize
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|