mkurtis has asked for the wisdom of the Perl Monks concerning the following question:
This code just prints white space although yahoo.txt does have yahoo's source in it and @file contains that source. I tried using $file but it only got the first line. I then tried this code.#!/usr/bin/perl use strict; use HTML::Strip; my $hs = HTML::Strip->new(); my @file; open(FILE,"</home/baelnorn/yahoo.txt"); @file = <FILE>; close(FILE); print $hs->parse(@file);
but it only gets about 3/4 of the text out of yahoo. There is nothing about a size limit to the parsing on his CPAN docs, does anyone know how i should go about fixing this?#!/usr/bin/perl -w use strict; use warnings; use LWP::Simple; use HTML::Strip; my $content = get("http://www.yahoo.com"); my $hs = HTML::Strip->new(); print $hs->parse($content);
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::Strip Problem
by tachyon (Chancellor) on Mar 29, 2004 at 04:53 UTC | |
by mkurtis (Scribe) on Mar 29, 2004 at 05:23 UTC | |
|
Re: HTML::Strip Problem
by graff (Chancellor) on Mar 29, 2004 at 06:06 UTC | |
by mkurtis (Scribe) on Mar 29, 2004 at 14:56 UTC | |
|
Re: HTML::Strip Problem
by Anonymous Monk on Jun 28, 2005 at 23:12 UTC |