File::Fetch(3p) Perl Programmers Reference Guide File::Fetch(3p)
File::Fetch(3p) Perl Programmers Reference Guide File::Fetch(3p) # File::Fetch(3p) Perl Programmers Reference Guide File::Fetch(3p) NNAAMMEE # File::Fetch - A generic file fetching mechanism SSYYNNOOPPSSIISS # use File::Fetch; ### build a File::Fetch object ### my $ff = File::Fetch->new(uri => 'http://some.where.com/dir/a.txt'); ### fetch the uri to cwd() ### my $where = $ff->fetch() or die $ff->error; ### fetch the uri to /tmp ### my $where = $ff->fetch( to => '/tmp' ); ### parsed bits from the uri ### $ff->uri; $ff->scheme; $ff->host; $ff->path; $ff->file; DDEESSCCRRIIPPTTIIOONN # File::Fetch is a generic file fetching mechanism. ...