http://stackoverflow.com/questions/4669670/how-do-i-download-a-file-using-perl
I'd use LWP::Simple for this.
#!/usr/bin/perl
use strict;
use warnings;
use LWP::Simple;
my $url = 'http://marinetraffic2.aegean.gr/ais/getkml.aspx';
my $file = 'data.kml';
getstore($url, $file);
'Programming' 카테고리의 다른 글
A Concise Introduction to Objective Caml (0) | 2012.06.11 |
---|---|
(Java) Execute Shell Command From Java (0) | 2012.06.10 |
Perl Display And Pass Command Line Arguments With @argv (0) | 2012.06.08 |
(C#) Play Sound Files using libZPlay (0) | 2012.06.07 |
libZPlay: Easy way to play mp3, ogg, ac3, flac, aac, wav and pcm files in your Win32 application (0) | 2012.06.07 |