in reply to Re: Re: Weird eq behaviour
in thread Weird eq behaviour

use the s modifier on the regexp to catch newline chars :
s Treat string as single line. That is, change "." to match any character whatsoever, even a newline, which normally it would not match.
s/./ord($&)." "/ges