[TxMt] Perl, Cmd+r not giving useful error messages
Justin Catterall
100621.1 at masonsmusic.co.uk
Tue Mar 12 15:57:14 UTC 2013
Usually Perl gives me nice and helpful error messages. On my new Mini it's not. I installed newer Perl than Apple currently provide using perlbrew and have my shebang line:
#!/Users/justin/perl5/perlbrew/perls/perl-5.16.2/bin/perl
My perl programs report helpful debug messages at the command line, but when I hit Cmd+r to have TM run the program they look like this:
BEGIN not safe after errors--compilation aborted at /Users/justin/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.2/Carp/Heavy.pm line 3.
Compilation failed in require at /Applications/TextMate.app/Contents/SharedSupport/Bundles/Perl.tmbundle/Support/exception_handler.pm line 30.
My TM_PERL variable is also:
/Users/justin/perl5/perlbrew/perls/perl-5.16.2/bin/perl
Reading through the exception_handler.pm file I see that line 30 is 'require Carp::Heavy…'. When I tried to install Carp/Heavy.pm using cpan it said that the module is up to date.
Any suggestions on what's not right here?
--
Justin C, by the sea.
More information about the textmate
mailing list