Subject: | all compilation errors are indicated on the wrong line ! |
Hi, here is a very simple example:
----------------------------
#!/usr/bin/env perl
use autobox::Core;
use PerlX::MethodCallWithBlock;
# This works
print [0..9]->grep { $_ > 5 }
->join(' - ');
# This error is indicated on the wrong line !
my $ERROR_ON_THIS_LINE = ] # this is line 10
------------------------------
Even though the compilation occurs on line 10, the error message that i get is:
Unmatched right square bracket at tests_now.pl line 8, at end of line
syntax error at tests_now.pl line 8, near "= ]"
Execution of tests_now.pl aborted due to compilation errors.
As you can see, the error is indicated on the wrong line.
I love this module, but because of this bug i won't use it, it's a shame :-/
It makes it too hard to debug anything.