LWP::Simple(3) User Contributed Perl Documentation LWP::Simple(3)
NAME
LWP::Simple - simple procedural interface to LWP
SYNOPSIS
perl -MLWP::Simple -e 'getprint "http://www.sn.no"'
use LWP::Simple;
$content = get("http://www.sn.no/");
die "Couldn't get it!" unless defined $content;
if (mirror("http://www.sn.no/", "foo") == RC_NOT_MODIFIED) {
...
}
if (is_success(getprint("http://www.sn.no/"))) {
...
}
DESCRIPTION
This module is meant for people who want a simplified view of the libwww-perl library. It should also be suitable for one-liners.
If you need more control or access to the header fields in the requests sent and
responses received, then you should use the full object-oriented interface provided by the "LWP::UserAgent" module.
描述:
这
LWP::Simple 模块
最新推荐文章于 2022-08-09 14:18:41 发布