#!/usr/bin/perl -w use warnings; use strict; use WWW::MakeAShorterLink; use File::Basename; my $longurl = shift; usage() unless $longurl; $longurl = clean_url($longurl); my $shorturl = makeashorterlink($longurl); if ($shorturl) { print "$shorturl\n"; exit 0; } else { print "Failed to create a shortlink, "; print "no more information is avaiable\n"; exit 2; } #subs funcs anfd other utils. sub usage { #if arguments are missing call this. my $appname = basename($0); #i hate here docss, they fuck the indentation print<