GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SHORTEN (1)

.ds Aq ’

NAME

shorten - CLI program to demonstrate use of WWW::Shorten

CONTENTS

SYNOPSIS



    # Default shortening service is Metamark
    $ shorten books.perl.org/book/171
    http://xrl.us/dv8

    # Change with an environment variable
    $ SHORTEN_SERVICE=TinyURL shorten books.perl.org/book/171
    http://tinyurl.com/ye7gjf4

    # Change with command line option
    $ shorten --service=TinyURL books.perl.org/book/171
    http://tinyurl.com/ye7gjf4

    # Change using config file
    $ cat ~/.shortenrc
    service = TinyURL
    $ shorten books.perl.org/book/171
    http://tinyurl.com/ye7gjf4

    # Lengthen a URL
    $ shorten -l http://tinyurl.com/ye7gjf4



CONFIGURATION

The service used can be controlled in various ways. The program will use the first of the following values that it finds:
o The value of the --service command line option.
o The value of the SHORTEN_SERVICE environment variable.
o The value of the service option from the configuration file (see below).
o If none of the above options is found, the program defaults to using Metamark.

CONFIGURATION FILE

As we use the Config::Auto module for configuration, shorten’s fairly flexible when it comes to format.

Configuration will be found in whichever of the following files comes first.



    shortenconfig
    ~/shortenconfig
    /etc/shortenconfig
    shorten.config
    ~/shorten.config
    /etc/shorten.config
    shortenrc
    ~/shortenrc
    /etc/shortenrc
    .shortenrc
    ~/.shortenrc
    /etc/.shortenrc



Generally, I use the format:



    service = MakeAShorterLink



which is simple and works. service is the only configuration keyword at present. Its value should be a correctly capitalized service name as per WWW::Shorten’s documentation.

LICENSE AND COPYRIGHT

Copyright 2002 - 2010, Magnum Solutions Ltd. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Iain Truskett <spoon@cpan.org>

CONTRIBUTORS

o Chase Whitener capoeirab@cpan.org
o Dave Cross <davecross@cpan.org>

SEE ALSO

WWW::Shorten
Search for    or go to Top of page |  Section 1 |  Main Index


perl v5.20.3 SHORTEN (1) 2016-03-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.