Lib::Furl - binding for stricaud faup library
# # Perl code # use Lib::Furl; my $url = 'https://user:pass@subdom.github.com:81/stricaud/faup/?test=1'; my $furl = Lib::Furl->new; $furl->decode($url); my $h = $furl->get; print Dumper($h),"\n"; # # Output # $VAR1 = { 'fragment' => '', 'query_string' => '?test=1', 'url_len' => 60, 'subdomain' => 'subdom', 'scheme' => 'https', 'port' => '81', 'host' => 'subdom.github.com', 'tld' => 'com', 'domain' => 'github.com', 'resource_path' => '/stricaud/faup/', 'url' => 'https://user:pass@subdom.github.com:81/stricaud/faup/?test=1', 'credential' => 'user:pass' };
The URL to decode.
Seperator to use when calling show.
Output file to use (default STDOUT) when calling show.
Returns a new Furl object.
Decodes the URL, returns undef on error or $self object on success.
Returns a hashref of decoded URL. Returns undef on error.
Prints the decoded URL into
You may distribute this module under the terms of the BSD license. See LICENSE file in the source distribution archive.
Copyright (c) 2012, Patrice <GomoR> Auffret
To install Lib::Furl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lib::Furl
CPAN shell
perl -MCPAN -e shell install Lib::Furl
For more information on module installation, please visit the detailed CPAN module installation guide.