in reply to Re^2: HTML stripper in WWW::Mechanize doesn't seem to work
in thread HTML stripper in WWW::Mechanize doesn't seem to work
Consider the simpler example:
If the content subroutine returns an array and you assign it in scalar context, you get the count of the things in the array. For your particular code you'll want something like: $stripped_html = join ' ', $webcrawler->content( format => "text" );my @mango = ('one', 'two', 'three', 'penguin'); my $result = @mango; print "Result is $result\n"; # prints 4 $result = join ' ', @mango; print "Result is $result\n"; # prints "one two three penguin"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: HTML stripper in WWW::Mechanize doesn't seem to work
by sk (Curate) on Aug 01, 2005 at 03:49 UTC | |
by Nkuvu (Priest) on Aug 01, 2005 at 04:20 UTC |