error "Can't use string ("HASH(0x20e9f78)") as a HASH ref while "strict refs"

63 views
Skip to first unread message

Hiroyo Nishide

unread,
Mar 7, 2014, 7:49:14 AM3/7/14
to sp...@googlegroups.com
Hi, I got an error

 Can't use string ("HASH(0x20e9f78)") as a HASH ref while "strict refs" in use at ConfigSetup.pm line 84, <FH> line 59.

I changed ConfigSetup.pm line 84 and ModelPred.pm line 403,

from: 
 for my $soft (keys %{$ENV{"method"}}) {  

to:
 for my $soft (keys %{$ENV->{"method"}}) {


Sorry I don't quit understand about perl HASH reference...
Does it work on your machine?
My machine :
CentOS release 6.4 (Final) x86_64
My perl version :
This is perl 5, version 18, subversion 1 (v5.18.1) built for x86_64-linux


And I'm afraid that ConfigSetup.pm line 64

now:
 $ENV{"methods"} = $methods if defined $methods;

right?:
 $ENV{"method"} = $methods if defined $methods;


Thank you for great software.

Hiroyo

Hiroyo Nishide

unread,
Mar 7, 2014, 8:06:04 AM3/7/14
to sp...@googlegroups.com
Now it's working.

2014年3月7日金曜日 21時49分14秒 UTC+9 Hiroyo Nishide:

Peng Zhou

unread,
Mar 7, 2014, 4:43:01 PM3/7/14
to sp...@googlegroups.com
Hi Hiroyo, thanks for reporting the error! That indeed is a typo in the ConfigSetup.pm script - I have corrected it updated the source.

Best,

Peng,

Hiroyo Nishide

unread,
Mar 13, 2014, 8:26:34 PM3/13/14
to sp...@googlegroups.com
Hi, Peng
Thank you for your quick response! We could have result.
Best,

Hiroyo
Reply all
Reply to author
Forward
0 new messages