scrooloose/syntastic — pull request #1262 by powerman (2014-12-07 12:31:20+00:00)
Title: fix filename detection for perl

It looks like sometimes perl add extra `, line 1234` to error message.
I'm not sure why this happens, but it looks like this junk should be removed in any case.
Example of this issue (perl-5.20.1, Mojolicious-5.62):
```sh
$ echo 'use Mojo::UserAgent; use No::Such;' > /tmp/perlerr
$ perl -c /tmp/perlerr
Can't locate No/Such.pm in @INC (you may need to install the No::Such module) (@INC contains: /etc/perl /usr/local/lib64/perl5/5.20.1/x86_64-linux /usr/local/lib64/perl5/5.20.1 /usr/lib64/perl5/vendor_perl/5.20.1/x86_64-linux /usr/lib64/perl5/vendor_perl/5.20.1 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.20.1/x86_64-linux /usr/lib64/perl5/5.20.1 .) at /tmp/perlerr line 1, line 2231.
BEGIN failed--compilation aborted at /tmp/perlerr line 1, line 2231.
```
If we replace Mojo::UserAgent with some other module the `, line 2231` part disappears:
```sh
$ echo 'use Mojo::Base; use No::Such;' > /tmp/perlerr
$ perl -c /tmp/perlerr
Can't locate No/Such.pm in @INC (you may need to install the No::Such module) (@INC contains: /etc/perl /usr/local/lib64/perl5/5.20.1/x86_64-linux /usr/local/lib64/perl5/5.20.1 /usr/lib64/perl5/vendor_perl/5.20.1/x86_64-linux /usr/lib64/perl5/vendor_perl/5.20.1 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.20.1/x86_64-linux /usr/lib64/perl5/5.20.1 .) at /tmp/perlerr line 1.
BEGIN failed--compilation aborted at /tmp/perlerr line 1.
```