NAME
WWW::Expand::More - The expander for a shortened URL
SYNOPSIS
use WWW::Expand::More;
my $expanded_url = WWW::Expand::More->expand('http://example.com/foo');
my @expanded_urls = WWW::Expand::More->expand_all('http://example.com/foo');
# options
print WWW::Expand::More->expand('http://example.com/foo' => {
timeout => 1,
agent => 'YourUA/1.0',
});
DESCRIPTION
WWW::Expand::More is the expander for a shortened URL.
METHODS
expand($url:Str, $opt:HashRef)
expand_all($url:Str, $opt:HashRef)
$opt: HashRef
ua
The User Agent Object that needs to have compatiblity with an interface of Furl.
timeout => $sec
agent => $agent_name
cache => boolean
If you set true value on cache
option, then the expanded URL will cache.
CLI COMMAND
expand_url
The cli command expand_url has been included in this module's distribution.
$ expand_url http://bit.ly/1BPj30x
https://www.google.com/search?q=Perl
You can use it in your terminal easily. See more detail expand_url.
REPOSITORY
WWW::Expand::More is hosted on github: http://github.com/bayashi/WWW-Expand-More
I appreciate any feedback :D
AUTHOR
Dai Okabayashi <bayashi@cpan.org>
SEE ALSO
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.