in reply to CGI::Session raises inconsistent error 'Can't modify constant item in scalar assignment'

In my experience that error occurs when I miss off the dollar sign on a variable.
$my_variable = 1; # what I meant to type my_variable = 1; # what I actually typed
So that would explain it. Why the error would happen once in twenty times is still a puzzle though.

As everyone else has said, show us your code.



($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
  • Comment on Re: CGI::Session raises inconsistent error 'Can't modify constant item in scalar assignment'
  • Download Code