Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: need help with judy array searching (updated)

by LanX (Cardinal)
on Dec 15, 2020 at 16:36 UTC ( #11125239=note: print w/replies, xml ) Need Help??


in reply to need help with judy array searching

Continuation of need help with Tie::Judy

edit

AFAIK are Judy arrays sorted hashes, so I'd say they define a search interval.

I'd suggest you try this out, and try to give us feedback.

update

Yep!

From the test suite mentioned in Re: need help with Tie::Judy

# test search method $obj->insert ( foo => 4, food => 5, fop => 6 ); # no args, returns all keys is_deeply([$obj->search], ['foo', 'food', 'fop']); # test min_key and max_key independently is_deeply([$obj->search(min_key => 'food')], ['food', 'fop']); is_deeply([$obj->search(max_key => 'food')], ['foo', 'food']);

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11125239]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2021-03-08 04:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (123 votes). Check out past polls.

    Notices?