51Degrees for Perl comes in two versions, Trie and Pattern. See below for the example for the version you are using:
51Degrees perl device detection example using Pattern detection method and binary data file.
51Degrees perl device detection example using Trie detection method and trie data file.