Acme-URL
view release on metacpan or search on metacpan
# 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};
DESCRIPTION
See: http://transfixedbutnotdead.com/2009/12/16/url-develdeclare-and-no-strings-attached/
INSTALLATION
To install this module, run the following commands:
perl Build.PL
./Build
./Build test
./Build install
lib/Acme/URL.pm view on Meta::CPAN
Acme::URL - Bareword URL with HTTP request
=head1 VERSION
Version 0.01
=head1 SYNOPSIS
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};
=head1 DESCRIPTION
See L<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 L<Devel::Declare>.
So go play with it and don't do anything stupid with it :)
=head1 EXPORT
=head2 http()
NB. Devel::Declare will always trigger the bareword http
( run in 0.707 second using v1.01-cache-2.11-cpan-88abd93f124 )