Remove smart match and lexical $_ for compatibility with perl 5.18. #1216
Merge branch 'perl-518'