• About Us
  • Blog
  • Basket
  • Account
  • Sign In

Trie Reference

The 51Degrees Perl Trie API makes the following functions available. See the Trie Example for a working perl program.


This function initialises an internal data set for detection using the given file name and fills it with properties as controlled by $propertyString.

$propertyString should be given in the following form: 'Id,BrowserName,BrowserVendor,BrowserVersion'. Properties should be separated by a comma.

void init($filename, $propertyString)


This function returns a string of device data from a useragent string in a JSON format.

string getMatch($userAgent)


This function destroys the internal dataset and release its resources.

void destroy()

Need Help?