add perl solution that creates a generally usable function
relax perl version down to 5.10
Merge pull request #161 from mydimension/perl-filter

Perl filter