Name
mirror
Synopsis
$ua
->mirror(url
,file
)
Given a URL and file path, this method copies the
contents of url
into the file when
the length or modification date headers are different from any
previous retrieval. If the file does not exist, it is created.
This method returns an HTTP::Response object, in which the
response code indicates what happened.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.