WWW::Shorten::UserAgent - LWP::UserAgent subclass for WWW::Shorten modules.
use WWW::Shorten::UserAgent; my $ua = WWW::Shorten::UserAgent->new; my $resp = eval { $ua->get($url); };
Subclass of LWP::UserAgent which works the same way as the supoerclass except that it throws an exception if the get or post method returns an error.
get
post
See LWP::UserAgent for the full documentation.
Makes an HTTP GET request and throws an exception on error.
Makes an HTTP POST request and throws an exception on error.
Copyright (c) Magnum Solutions Ltd., 2012. All rights reserved.
This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
Dave Cross <dave@mag-sol.com>
To install WWW::Shorten, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Shorten
CPAN shell
perl -MCPAN -e shell install WWW::Shorten
For more information on module installation, please visit the detailed CPAN module installation guide.