NAME
Quote::Reference - Shortcut notation for whitespace-delimited array and hash references
SYNOPSIS
use Quote::Reference;
# Set $foo = ['this','is','an','array','reference'];
my $foo = qwr( this is an array reference );
# Set $bar = {
# 'red' => 'FF0000',
# 'green' => '00FF00',
# 'blue' => '0000FF'
# }
my $bar = qhr{
red FF0000
green 00FF00
blue 0000FF
};
DESCRIPTIONG
This module uses source filtering to allow creating hash and array references just as easily and clean as using qw(...).
The following new quotelike operators are created:
qwr(...)
This behaves in the same way as qw(...) except that it returns an array reference instead of a list.
Mnemonic: qw that returns a reference
qhr(...)
This behaves in the same way as qw(...) except that it returns a hash reference instead of a list.
Mnemonic: quote for hash references
CAVEATS
Since this module is based on source filtering, if you have the strings 'qwr' or 'qhr' anywhere in your code, you will get unexpected results.
AUTHOR
Anthony Kilna, <anthony at kilna.com>
- http://anthony.kilna.com
BUGS
Please report any bugs or feature requests to bug-quote-reference at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Quote-Reference. 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 Quote::Reference
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
COPYRIGHT & LICENSE
Copyright 2012 Kilna Companies.
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.