NAME
Quote::Ref - qw for array/hash references
SYNOPSIS
use Quote::Ref;
my $aref = qa(foo bar baz); # $aref = [ qw(foo bar baz) ]
my $href = qh(foo 1 bar 2); # $href = { qw(foo 1 bar 2) }
DESCRIPTION
This module provides the new keywords qa
and qh
.
qa
qa
is a quoting operator like q or qq. It works like qw
in that it parses its contents as a list of whitespace separated words, but instead of turning them into a list, it turns them into an array reference. That is, qa!...!
works like [ qw!...! ]
.
qh
qh
is a quoting operator like q or qq. It works like qw
in that it parses its contents as a list of whitespace separated words, but instead of turning them into a list, it turns them into an hash reference. That is, qh!...!
works like { qw!...! }
.
AUTHOR
Lukas Mai, <l.mai at web.de>
COPYRIGHT & LICENSE
Copyright 2013 Lukas Mai.
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.