Hice este simple script para buscar y bajar música.
El código:
#!usr/bin/perl
#MP3 Downloader 0.1
#Coded By Doddy H
use LWP::UserAgent;
use URI::Split qw(uri_split);
use Time::HiRes "usleep";
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);
my $se = "downloads_mp3";
unless ( -d $se ) {
mkdir( $se, "777" );
}
chdir $se;
head();
print " Song : ";
chomp( my $song = <stdin> );
$song =~ ...