logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Strip html from filehandle? >was win command console exe how perl launch &: msg#02237

Subject: Strip html from filehandle? >was win command console exe how perl launch & capture its STDOUT?
Hi and thanks much!

Success!! Learning occurred. Here's what I tinkered with and got to work so far.

my $output = qx(graburl http://www.wrh.noaa.gov/cgi-bin/Sacramento/afd?SFOZFPSTO);
open MYWTHR, ">myweathr"
   or die "Cannot create mywthr_txt: $!";
print MYWTHR "$output";
#----end--

(graburl.exe) www.google.com for graburl

But it pulls all content, including the html, from that url and writes to file.

Can strip all html before writes to file?  If so, how?

I just want only the text info content in my file.

Thanks.  Alan.


<Prev in Thread] Current Thread [Next in Thread>