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?