add perl implementation

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Merge pull request #16 from andrewgregory/perl

add perl implementation