Barry Walsh > PerlX-QuoteOperator-0.04 > PerlX::QuoteOperator::URL

Download:
PerlX-QuoteOperator-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

PerlX::QuoteOperator::URL - Quote-like operator returning http request for the URL provided.

VERSION ^

Version 0.02

SYNOPSIS ^

    use PerlX::QuoteOperator::URL;

    my $content = qURL( http://transfixedbutnotdead.com );   # does HTTP request

DESCRIPTION ^

For more info see PerlX::QuoteOperator.

For now here is another example:

    use PerlX::QuoteOperator::URL 'qh';
    use JSON qw(decode_json);

    say decode_json( qh{ http://twitter.com/statuses/show/6592721580.json } )->{text};

    # => "He nose the truth."

EXPORT ^

By default 'qURL' is exported to calling package/program.

This can be changed by providing a name of your own choice:

    use PerlX::QuoteOperator::URL 'q_http_request';

FUNCTIONS ^

import

Standard import subroutine.

SEE ALSO ^

AUTHOR ^

Barry Walsh, <draegtun at cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-perlx-quoteoperator at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=PerlX-QuoteOperator. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc PerlX::QuoteOperator::URL

You can also look for information at:

ACKNOWLEDGEMENTS ^

Inspired by this blog post: http://ozmm.org/posts/urls_in_ruby.html and wanting to learn Devel::Declare

DISCLAIMER ^

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 & LICENSE ^

Copyright 2009-2010 Barry Walsh (Draegtun Systems Ltd | http://www.draegtun.com), 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.

syntax highlighting: