#!/usr/bin/perl
use File::Find;
$domain="http://www.foobar.com";
$root_path="/path/to/domain/root/";
find \&foo,$root_path;
open (FP,">output.txt");
foreach $i (@files) {
print FP "$domain/$i\n";
}
close(FP);
exit;
sub foo {
my $foo=$File::Find::name;
if ( $foo=~/html$/) {
$foo=~s/$root_path//;
push @files,$foo;
}
}
(Note - this crawls down the directory tree as well)