The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Hash::RestrictedKeys - restricted hash keys

VERSION

Version 1.00

SYNOPSIS

Quick summary of what the module does.

Perhaps a little code snippet.

use Hash::RestrictedKeys;

my $foo = Hash::RestrictedKeys->new(qw/one two three/);

$foo->{one} = 1;
$foo->{two} = 2;
$foo->{three} = 3;
$foo->{four} = 'kaput'; # Invalid key four. Allowed keys: one, two, three

...

use Hash::RestrictedKeys::Tie;

tie my %foo, 'Hash::RestrictedKeys::Tie', qw/one two three/;

$foo{one} = 1;
$foo{two} = 2;
$foo{three} = 3;
$foo->{four} = 'kaput'; # Invalid key four. Allowed keys: one, two, three

METHODS

new

Instantiate a new Hash::RestrictedKeys Object which is a wrapper around Hash::RestrictedKeys::Tie.

Hash::RestrictedKeys->new();	

AUTHOR

LNATION, <email at lnation.org>

BUGS

Please report any bugs or feature requests to bug-hash-restrictedkeys at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Hash-RestrictedKeys. 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 Hash::RestrictedKeys

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2021->2024 by LNATION.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)