NAME
Keyword::Anonymous::Object - anonymous objects
VERSION
Version 1.00
SYNOPSIS
use Keyword::Anonymous::Object qw/object/;
object my $obj => {
a => {
b => {
c => 1
}
}
d => [1, 2, { e => 2 }],
};
$obj->a->b->c; # 1
$obj->d->[2]->e; # 2
$obj->has_a;
$obj->get_a;
$obj->set_a({ ... });
$obj->ref_a;
$obj->reftype_a;
$obj->clear_a;
EXPORT
SUBROUTINES/METHODS
object
This module exports a single keyword object that expects a scalar variable as its first argument, followed by either an array reference or a hash reference as the value of that scalar. Additional optional parameters can be provided to disable certain functionality.
object my $obj => {
a => 1,
b => 2,
c => 3
}, set => 0, autotype => 0;
AUTHOR
LNATION, <email at lnation.org>
BUGS
Please report any bugs or feature requests to bug-keyword-anonymous-object at rt.cpan.org
, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Keyword-Anonymous-Object. 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 Keyword::Anonymous::Object
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=Keyword-Anonymous-Object
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2025 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)