English::Reference - use words to dereference things
use English::Reference; or use English::Reference qw(deref); ... print SCALAR \"Hello World";
Provides the ability to use:
ARRAY $arrayref CODE $coderef GLOB $globref HASH $hashref SCALAR $scalaref
en lieu of
@$arrayref &$coderef *$globref %$hashref $$scalaref
or
@{$arrayref} &{$coderef} *{$globref} %{$hashref} ${$scalaref}
As an added bonus, there is a function deref; not exported by default; which you can use to dereference a reference of any type.
deref
You cannot do ARRAY{$arrayref} etc. This is not too bad seeing as the whole point of this module is to reduce the amount of punctuation you use.
Jerrad Pierce <belg4mit@mit.edu, the_lorax@usa.net>, Jeff Pinyan <japhy@pobox.com>, Casey R. Tweten <crt@kiski.net>
English(3).
To install English::Reference, copy and paste the appropriate command in to your terminal.
cpanm
cpanm English::Reference
CPAN shell
perl -MCPAN -e shell install English::Reference
For more information on module installation, please visit the detailed CPAN module installation guide.