Perl Script Analysis

A complex Perl script is analyzed for functionality. This script expects two command line arguments passed by the user, the first of which is a website url, and the second is the filetype. The script creates a request to Google to find links that have been indexed for the requested file type. The response from this request is parsed for links within the HTML links tag and then for each extracted url, if the url contains string “url” then the url is printed to the screen.