mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 19:52:34 +01:00
Add ability to clear DualIndexHashObject
This commit is contained in:
parent
e5bd377477
commit
16f34026da
@ -152,6 +152,11 @@ sub save {
|
|||||||
close FILE;
|
close FILE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub clear {
|
||||||
|
my $self = shift;
|
||||||
|
$self->{hash} = {};
|
||||||
|
}
|
||||||
|
|
||||||
sub find_index {
|
sub find_index {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my ($primary_index_key, $secondary_index_key) = map {lc} @_;
|
my ($primary_index_key, $secondary_index_key) = map {lc} @_;
|
||||||
|
Loading…
Reference in New Issue
Block a user