NAME
Quote::Reference - Shortcut notation for whitespace-delimited array and hash references
VERSION
Version 1.0.0
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>
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
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2009 Anthony Kilna, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.