Un simple
script para subir imágenes a Imageshack.
El código :
#!usr/bin/perl
#Imageshack Uploader 0.1
#Coded By Doddy H
#ppm install
http://www.bribes.org/perl/ppm/Crypt-SSLeay.ppduse LWP::UserAgent;
my $nave = LWP::UserAgent->new;
$nave->agent(
"Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.12) Gecko/20080201Firefox/2.0.0.12"
);
$nave->timeout(5);
head();
unless ( $ARGV ) {
print "\n Sintax : $0 <image>\n";
}
else {
my $your_key = "YOURKEY"; #Your API Key
print "\n Uploading ...\n";
my ...