in reply to HTML::TokeParser::Simple advice requested
Is just superfluous since we have already my $p = HTML::TokePaser::Simple->new(\$string);. If you want that novice users do the right, just give a example in the docs. A perl programmer has to learn about references anyway.my $parser3 = HTML::TokePaser::Simple->new_from_scalar($string);
Or, add a hashref with lots of new options instead of more new like methods.use LWP::Simple; my $content = get 'http://www.perlmonks.org/'; die "Can't get content" unless defined $content; HTML::TokePaser::Simple->new(\$content);
HTML::TokePaser::Simple->new({ url => 'http://www.perlmonks.org/' }); HTML::TokePaser::Simple->new({ scalar => $content });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::TokeParser::Simple advice requested
by simonm (Vicar) on Aug 13, 2004 at 21:55 UTC | |
by borisz (Canon) on Aug 13, 2004 at 22:11 UTC | |
by ihb (Deacon) on Aug 15, 2004 at 23:05 UTC |