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

Offcourse :(
I didnt think of this because I tried to print the line after a s/./ord($&)." "/ge, but that doesnt change the newline either... ARG ;)

T I M T O W T D I

Replies are listed 'Best First'.
Re: Re: Re: Weird eq behaviour
by choocroot (Friar) on Jul 25, 2002 at 13:18 UTC
    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