|
English::Reference - use words to dereference things |
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.
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
English(3).
|
English::Reference - use words to dereference things |