in reply to Page Scraping

Your code:

my @profiles = $mech->find_all_links( text_regex => qr/^d{9}$/ );

...says to find links that contain the letter 'd' nine times (d{9}). Maybe you meant to match nine digits (\d{9}) instead?

Also, the WWW::Mechanize documentation says that find_all_links returns a list of WWW::Mechanize::Link objects. These would not be suitable to pass to chomp. The loop after that should probably start out something like:

foreach my $parse ( map { $_->url() } @profiles) {

This way you'll loop over the URLs that it found (rather than the objects).