my $b = new foo::bar { CURRENT_URL => 'www.site_i_am_crawling.com/page_i_am_crawling.html', ## New will croak if this is not provided. FIND_CONTAINED_URLS => 1 , ## Default 1 BREAK_CONTAINED_URLS => 1 , ## Default 1 ABSOLUTE_CONTAINED_URLS => 1 , ## Default 1 CLEAN_URLS => 1 , ## Default 1 CURRENT_URL_HTML => "long string here", ## Optional, will be extracted if this is not provided. USER-AGENT => '' , TIMEOUT => 5 , DEBUG => 0 } $b->get_url_info( ## Can reset object parameters here. ## All processing will be performed only when this function is called. ); my @array_of_urls = $b->get_contained_urls(); ## ALSO for NON-OO my @array_of_urls = get_contained_urls( URL => '', HTML => '' ); ... my $all_results = $b->get_all_results();