It had $sth->bind_param(1,@$->[0]); I have been trying to find out what the error is and hence following tons of tricks available online and thats why I had changed it to $->[0] instead of @$->[0]
even then it gave me the same error.
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 routines and they are unordered.. I didn't quite understand what that meant.. Thats why I posted my whole code here.