[ensembl-dev] LoadPlugins.pm problem

Andy Yates ayates at ebi.ac.uk
Wed Apr 23 10:51:45 BST 2014


Hi,

Can you check which Perl your apache instance is using? I only ask because I can only reproduce the error using versions of Perl lower than 5.14 (these examples use 3 perl versions I have installed on my local machine using perlbrew):

$ perlbrew use 5.14.2
$ perl -e 'for ("a", "b", "c") { my $filename = "$_->[1]/$filename" =~ s/\/+/\//gr; }'

$ perlbrew use 5.8.9
$ perl -e 'for ("a", "b", "c") { my $filename = "$_->[1]/$filename" =~ s/\/+/\//gr; }'
Bareword found where operator expected at -e line 1, near "s/\/+/\//gr"
syntax error at -e line 1, near "s/\/+/\//gr"
Execution of -e aborted due to compilation errors.

$ perlbrew use 5.10.0
$ perl -e 'for ("a", "b", "c") { my $filename = "$_->[1]/$filename" =~ s/\/+/\//gr; }'
Bareword found where operator expected at -e line 1, near "s/\/+/\//gr"
Can't modify string in substitution (s///) at -e line 1, near "s/\/+/\//gr"
syntax error at -e line 1, near "s/\/+/\//gr"
Execution of -e aborted due to compilation errors.

In fact the error suggests you're running a Perl which is either 5.10.x or 5.12.x. Can you confirm what perl -V returns back when you enter it on the command line?

Thanks,

Andy

------------
Andrew Yates - Ensembl Support Coordinator
European Bioinformatics Institute (EMBL-EBI)
European Molecular Biology Laboratory
Wellcome Trust Genome Campus
Hinxton
Cambridge CB10 1SD
Tel: +44-(0)1223-492538
Fax: +44-(0)1223-494468
http://www.ensembl.org/

On 18 Apr 2014, at 04:55, 陈岗 <danielchen06 at gmail.com> wrote:

> Hi Ensembl developers
> 
> I update perl to v 5.14.4, but the problem still exists:
> 
> Can't modify string in substitution (s///) at /usr/local/Ensembl/ensembl-webcode/conf//LoadPlugins.pm line 84, near "s/\\/+/\\//gr"  
> syntax error at /usr/local/Ensembl/ensembl-webcode/conf//LoadPlugins.pm line 84, near "s/\\/+/\\//gr"
> 
> I try to debug the error by print out the variable, but it is under mod_perl environment, the STDOUT is redirected to somewhere else. 
> Would you please tell me how to debug it? 
> 
> Best
> -- 
> Gang Chen
> TILSI
> Taicang Institute For Life Science Information
> Address: A2/162, Renmin South Road, Taicang, 215400, Jiangsu Province, P.R.China
> Phone:(+86)512-82782588
> _______________________________________________
> Dev mailing list    Dev at ensembl.org
> Posting guidelines and subscribe/unsubscribe info: http://lists.ensembl.org/mailman/listinfo/dev
> Ensembl Blog: http://www.ensembl.info/





More information about the Dev mailing list