Skip to content

Instantly share code, notes, and snippets.

@mattn
Created April 14, 2009 08:18
Show Gist options
  • Save mattn/95060 to your computer and use it in GitHub Desktop.
Save mattn/95060 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use WWW::Shorten::Simple;
my $svc = WWW::Shorten::Simple->new('RevCanonical');
my $short_url = $svc->shorten('http://www.flickr.com/photos/mattn_jp/3253743034/');
#my $short_url = $svc->shorten('http://24ways.org/2008/recession-tips-for-web-designers');
warn $short_url;
my $canon_url = $svc->unshorten($short_url);
warn $canon_url;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment