WWW::Shorten::SCK - Perl interface to sck.pm
version 0.5
A Perl interface to the web sck.pm. SCK keep a database of long URLs, and give you a tiny one.
use WWW::Shorten 'SCK'; my $long_url = "a long url"; my $short_url = ""; $short_url = makeashorterlink($long_url); $long_url = makealongerlink($short_url);
The function makeashorterlink will call the SCK web site passing it your long URL and will return the shorter SCK version.
makeashorterlink
The function makealongerlink does the reverse. makealongerlink will accept as an argument either the full SCK URL or just the SCK identifier.
makealongerlink
If anything goes wrong, then either function will return nothing.
See the main WWW::Shorten docs.
WWW::Shorten, perl, http://sck.pm/
Please report any bugs or feature requests on the bugtracker website https://github.com/celogeek/WWW-Shorten-SCK/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
celogeek <me@celogeek.com>
This software is copyright (c) 2013 by celogeek <me@celogeek.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WWW::Shorten::SCK, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Shorten::SCK
CPAN shell
perl -MCPAN -e shell install WWW::Shorten::SCK
For more information on module installation, please visit the detailed CPAN module installation guide.