Your use of add_string looks wrong according to the documentation which gives the function interface as:
$pt->add_string(key_string[,user_data]);
Note that the [,user_data] means you can provide optional user data along with the string. However you call the function passing an array containing two strings then follow up with a third string formed by interpolating the same array.
I haven't the module installed so I won't offer any code as I can't test it. The documentation seems pretty clear to me so I suggest you re-read the docs and take a careful look at the example code. Note that add_string returns undef on failure so you can easily check to see that the module isn't grumpy with the way you are using it.
In reply to Re^7: Net::Patricia - Perl Module for IP lookup
by GrandFather
in thread Net::Patricia - Perl Module for IP lookup
by maheshkumar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |