Added the Perl example
fixed typos in the comment
Merge pull request #4 from okko/master

Perl example added