error (perl use hash as string) running SPADA

27 views
Skip to first unread message

Michael Seidl

unread,
Jul 15, 2016, 2:30:29 AM7/15/16
to SPADA
Hi google group,

I yesterday fetched the recent version of SPADA from github. When I run the perl script, I get the following error

Can't use string ("HASH(0x67e59c8)") as a HASH ref while "strict refs" in use at /home/michael/DataI/software/spada/spada/ConfigSetup.pm line 87, <FH> line 45.

This refers to the line in ConfigSetup.pm that splits the methods from $ENV{'methods'} into an hash which is assigned to $ENV{'method'}. For not that obvious reasons, this assignment fails. If I 'repeat' the assignment into a new hash, it works fine:


$ENV{"method"}  = { map {$_=>{}} split(";", $ENV{"methods"}) };
my %hash = ();
$hash{'test'} = { map {$_=>{}} split(";", $ENV{"methods"}) };

===print Dumper \%hash
$VAR1 = {
          'test' => {
                      'GeneWise_SplicePredictor' => {},
                      'Augustus_evidence' => {}
                    },


===print Dumper \%ENV (omitted non relevant entries)
$VAR1 = {
           'method' => 'HASH(0x6ea8bb0)',
}


Does anyone has an idea what's going on here?

Thanks
Michael
Reply all
Reply to author
Forward
0 new messages