For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > January 2007 > Re: Can't use string ("1") as a HASH ref while "strict refs" in u









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

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

2007-01-27, 6:58 pm



On Jan 27, 2:24 pm, jsmith20042...@yahoo.com 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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com