Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: problem HTML::FormatText::WithLinks::AndTables

by Khen1950fx (Canon)
on Dec 07, 2012 at 22:45 UTC ( #1007834=note: print w/ replies, xml ) Need Help??


in reply to problem HTML::FormatText::WithLinks::AndTables

Try this:

#!/usr/bin/perl use strict; use warnings; use LWP::Simple; use HTML::FormatText::WithLinks; my $html = get( "http://www.perlmonks.org/?node=Recently%20Active%20Threads" ); my $f = HTML::FormatText::WithLinks->new( base => "http://www.perlmonks.org/", unique_links => 1, link_num_generator => \&generator, before_link => '[%n]', footnote => '%n est %l' ); sub generator() { my $num = shift; $num += 1; return $num; } print $f->parse($html);


Comment on Re: problem HTML::FormatText::WithLinks::AndTables
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1007834]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-09-02 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (18 votes), past polls