CPAN Perl modules

The previous few examples have been relying on slurping in the shell output from the curl command and working with it as an array. We can forgo the command-line tool curl, and use Perl itself to make the HTTP request. We will do this using the LWP::UserAgent Perl module available from CPAN ( CPAN stands for Comprehensive Perl Archive Network and hosts a massive code base that we can utilize for stable and tested code reuse. If there are already classes for the code we want in CPAN, it is always best to use them first. Why? Because by doing so, we cut out the need for dependencies and create cross-platform applications. What if we give our imgGrab application to a coworker, who doesn't have curl installed on their ...

Get Penetration Testing with Perl now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.