Acme::URL - Bareword URL with HTTP request
Version 0.01
URL without any strings attached performing a HTTP request returning the content:
use Modern::Perl; use JSON qw(decode_json); use Acme::URL; # print the json say http://twitter.com/statuses/show/6592721580.json; # => "He nose the truth." say decode_json( http://twitter.com/statuses/show/6592721580.json )->{text};
See http://transfixedbutnotdead.com/2009/12/16/url-develdeclare-and-no-strings-attached/
NB. This module is just a play thing and just intended as an investigation into using Devel::Declare. So go play with it and don't do anything stupid with it :)
NB. Devel::Declare will always trigger the bareword http
Barry Walsh, <draegtun at cpan.org>
<draegtun at cpan.org>
Please report any bugs or feature requests to bug-acme-url at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Acme-URL. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-acme-url at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Acme::URL
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-URL
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Acme-URL
CPAN Ratings
http://cpanratings.perl.org/d/Acme-URL
Search CPAN
http://search.cpan.org/dist/Acme-URL/
See Devel::Declare for the black magic used!
This is (near) beta software. I'll strive to make it better each and every day!
However I accept no liability whatsoever should this software do what you expected ;-)
Copyright 2009 Barry Walsh (Draegtun Systems Ltd), all rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Acme::URL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::URL
CPAN shell
perl -MCPAN -e shell install Acme::URL
For more information on module installation, please visit the detailed CPAN module installation guide.