WWW::Expand::More - The expander for a shortened URL
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', });
WWW::Expand::More is the expander for a shortened URL.
The User Agent Object that needs to have compatiblity with an interface of Furl.
If you set true value on cache option, then the expanded URL will cache.
cache
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.
WWW::Expand::More is hosted on github: http://github.com/bayashi/WWW-Expand-More
I appreciate any feedback :D
Dai Okabayashi <bayashi@cpan.org>
Furl
WWW::Expand
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install WWW::Expand::More, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Expand::More
CPAN shell
perl -MCPAN -e shell install WWW::Expand::More
For more information on module installation, please visit the detailed CPAN module installation guide.