Hey guys,
I just noticed, newer Perl 5.10 distributions don't have the B/Bytecode module included anymore. This is what we used in the past as the default Compile command[1] for the filetype Perl. The idea was to perform a syntax check this way.
It seems with 5.10 this module doesn't exist anymore or at least isn't shipped anymore with the default Perl distribution. But instead, Perl 5.10 has a -c command line option which also does a syntax check. I guess this is enough for our needs to be used as the *default* Compile command.
Since Perl 5.10 isn't really new anymore, I think we could change the Compile command.
But I guess some of you, Nick, Dominic, ... know Perl much better than me and so can maybe judge a bit better.
Any opinions?
[1] perl -MO=Bytecode,-H,-o"%f"c "%f"
Regards, Enrico
Am Dienstag, den 30.03.2010, 23:21 +0200 schrieb Enrico Tröger:
Hey guys,
I just noticed, newer Perl 5.10 distributions don't have the B/Bytecode module included anymore. This is what we used in the past as the default Compile command[1] for the filetype Perl. The idea was to perform a syntax check this way.
It seems with 5.10 this module doesn't exist anymore or at least isn't shipped anymore with the default Perl distribution. But instead, Perl 5.10 has a -c command line option which also does a syntax check. I guess this is enough for our needs to be used as the *default* Compile command.
Since Perl 5.10 isn't really new anymore, I think we could change the Compile command.
But I guess some of you, Nick, Dominic, ... know Perl much better than me and so can maybe judge a bit better.
I think it's okay to change the default compile command to `perl -c "%f"`. I actually already did this for me a few weeks ago. :)
Regards, Dominic
On Wed, 31 Mar 2010 00:24:45 +0200 Dominic Hopf dmaphy@googlemail.com wrote:
It seems with 5.10 this module doesn't exist anymore or at least isn't shipped anymore with the default Perl distribution. But instead, Perl 5.10 has a -c command line option which also does a syntax check. I guess this is enough for our needs to be used as the *default* Compile command.
Since Perl 5.10 isn't really new anymore, I think we could change the Compile command.
But I guess some of you, Nick, Dominic, ... know Perl much better than me and so can maybe judge a bit better.
I think it's okay to change the default compile command to `perl -c "%f"`. I actually already did this for me a few weeks ago. :)
Sounds good - this actually works with my perl-5.8.8-32.fc8.
Regards, Nick
В Чтв, 01/04/2010 в 12:46 +0100, Nick Treleaven пишет:
I think it's okay to change the default compile command to `perl -c "%f"`. I actually already did this for me a few weeks ago. :)
Sounds good - this actually works with my perl-5.8.8-32.fc8.
perl -cw "%f"
-w means 'use warnings' and should be used always.
man perl, 'Did we mention that you should definitely consider using the -w switch?'
On Fri, 02 Apr 2010 16:46:30 +0300, Serge wrote:
В Чтв, 01/04/2010 в 12:46 +0100, Nick Treleaven пишет:
I think it's okay to change the default compile command to `perl -c "%f"`. I actually already did this for me a few weeks ago. :)
Sounds good - this actually works with my perl-5.8.8-32.fc8.
perl -cw "%f"
-w means 'use warnings' and should be used always.
man perl, 'Did we mention that you should definitely consider using the -w switch?'
Thanks all, I changed it in SVN to the command above.
Regards, Enrico
On Sat, 3 Apr 2010 17:42:11 +0200, Enrico wrote:
On Fri, 02 Apr 2010 16:46:30 +0300, Serge wrote:
В Чтв, 01/04/2010 в 12:46 +0100, Nick Treleaven пишет:
I think it's okay to change the default compile command to `perl -c "%f"`. I actually already did this for me a few weeks ago. :)
Sounds good - this actually works with my perl-5.8.8-32.fc8.
perl -cw "%f"
-w means 'use warnings' and should be used always.
man perl, 'Did we mention that you should definitely consider using the -w switch?'
Thanks all, I changed it in SVN to the command above.
For some reason, the mentioned change never made it into the repository. Sorry.
Done now.
Regards, Enrico