extract urls of a document
You have a file called ffff.txt. In this are several links. You want to extract them. This script will store them in cccc.txt for you.
use HTML::LinkExtor; # new Parser-Object open (FULLrt2rt, ">cccc.txt") || die "file cccc not found\n"; $p = HTML::LinkExtor->new(); # local file open and parse $p->parse_file('ffff.txt'); for ($p->links() ) { print FULLrt2rt "@{$_}\n"; } close (FULLrt2rt);