in reply to Re: Use of Uninitialized value in substitution (s///)
in thread Use of Uninitialized value in substitution (s///)

Perl is crazy. if you put a space after the "=", you will get this error. Something like this: $s = ~s/abc/def/g; This is ridiculas.
  • Comment on Re^2: Use of Uninitialized value in substitution (s///)

Replies are listed 'Best First'.
Re^3: Use of Uninitialized value in substitution (s///)
by jdporter (Paladin) on Jul 05, 2012 at 03:41 UTC

    That's not "putting a space after the =", that's breaking the =~ operator by spelling it wrong. Crazy? What's crazy is thinking that putting spaces in the middle of operators should have no effect. Thinking = ~ should work is as crazy as thinking that e q should work, or s ub, or m y.