Coder Social home page Coder Social logo

perlx-quoteoperator-url's Introduction

NAME

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

VERSION

Version 1.02

SYNOPSIS

use PerlX::QuoteOperator::URL;

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

DESCRIPTION

This module provides a Quote-like operator which returns a HTTP request using the LWP::Simple module.

Please see PerlX::QuoteOperator for more detail on Quote-like operators.

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

NB. This module use to be part of the PerlX::QuoteOperator distro. It was removed at 0.05 (23rd Feb 2015)

CONTRIBUTORS

Brian Rossmajer (https://github.com/BrianRossmajer) for Directory::Scratch removal patch at 1.01

AUTHOR

Barry Walsh, <draegtun at cpan.org>

BUGS

Please report any bugs or feature requests to https://github.com/draegtun/PerlX-QuoteOperator-URL/issues

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 2015- 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.

perlx-quoteoperator-url's People

Contributors

brianrossmajer avatar draegtun avatar

Watchers

 avatar

perlx-quoteoperator-url's Issues

Typo in prerequisite specification (URI::File instead URI::file)

build_requires specifies URI::File, but probably you meant URI::file. CPAN.pm shows this message while trying to install the module:

---- DRAEGTUN/PerlX-QuoteOperator-URL-1.01.tar.gz ----
    URI::File [build_requires]
    PerlX::QuoteOperator [requires]
Running install for module 'URI::File'

  The module URI::File isn't available on CPAN.

  Either the module has not yet been uploaded to CPAN, or it is
  temporary unavailable. Please contact the author to find out
  more about the status. Try 'i URI::File'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.