in reply to Strict Ref : ERROR

This would appear to be coming from:

   $sth->bind_param(1,$_->[0]);

I'm not sure what you expected to have in $_ at this point, but it's not an array ref. To my eyes the error message you recieved is exactly what I would expect. Did you have trouble understanding it?

-sam

Replies are listed 'Best First'.
Re^2: Strict Ref : ERROR
by swetashah23 (Initiate) on Jun 28, 2006 at 17:15 UTC
    It had $sth->bind_param(1,@$->[0]); I have been trying to find out what the error is and hence following t +ons of tricks available online and thats why I had changed it to $->[ +0] instead of @$->[0] <br/> even then it gave me the same error.<br> Thanks. yes. maybe an understanding as to what causes this error also will be +helpful.. one link said that its may happen if there are two sub rou +tines and they are unordered.. I didn't quite understand what that me +ant.. Thats why I posted my whole code here.
      Abandon complex explainations - this is a simple problem. You're trying to treat $_ as though it has an array-ref in it. It does not - it has a string instead.

      -sam