DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Simplest Wget/curl Replacement With Perl ;-)

07.30.2008
| 11917 views |
  • submit to reddit
        usage: lwp-get.pl your_url > output_file

#!/usr/bin/perl
use LWP::Simple;
getprint($ARGV[0]) if $ARGV[0];