Re: Can't use string ("1") as a HASH ref while "strict refs" in use at





On Jan 27, 2:24 pm, jsmith20042...@xxxxxxxxx wrote:
Hi,

I'm very new to perl I am using some modified opensrs code that
included some payment gateway stuff. This script use to always work
and I have never modified it, however I upgraded my version of perl a
little while back and now I am receiving the following error:

Can't use string ("1") as a HASH ref while "strict refs" in use at D:
\InetPub\wwwroot\opensrs\cgi-bin\renew.cgi line 331.

Line 331 of renew.cgi is:

my $auth_code=$ccret->{auth_code};

can someone please tell me what I need to do to fix this?

Thanks so much in advance..

You are using $ccret as a hash reference. So, Evidently $ccret is set
to
"1" instead of a valid hash reference. Check to see where $ccret is
given a value.
HTH, Ken

.