| 1 | package Judy::1; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Sub::Exporter -setup => { | ||
| 7 | exports => [qw[ | ||
| 8 | Set Get Delete Unset Test | ||
| 9 | Count Nth | ||
| 10 | Free MemUsed | ||
| 11 | First Next Last Prev | ||
| 12 | FirstEmpty NextEmpty LastEmpty PrevEmpty | ||
| 13 | ]], | ||
| 14 | }; | ||
| 15 | |||
| 16 | BEGIN { | ||
| 17 | *Delete = \&Unset; | ||
| 18 | *Get = \&Test; | ||
| 19 | } | ||
| 20 | |||
| 21 | Judy::_obj->import( -impl ); | ||
| 22 | |||
| 23 | require Judy::1::_tie; | ||
| 24 | require Judy::1::_obj; | ||
| 25 | |||
| 26 | no warnings; | ||
| 27 | 'Warning! The consumption of alcohol may cause you to think you have mystical kung-fu powers.' |