Set::Associate::NewKey::PickOffset - Associate a key with a value from a pool based on the keys value as a numeric offset.
version 0.004001
The name of this key assignment method ( pick_offset )
pick_offset
Returns a value non-destructively by picking an item at numerical offset $new_key
$new_key
my $value = $object->get_assoc( $set_assoc, $new_key );
Note: $new_key is automatically modulo of the length of $set_assoc, so offsets beyond end of array are safe, and wrap.
$set_assoc
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Set::Associate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Set::Associate
CPAN shell
perl -MCPAN -e shell install Set::Associate
For more information on module installation, please visit the detailed CPAN module installation guide.