Split warning

Hi:

With the laster cvs version, ruby gives warning

$ruby -e ‘“abc”.split("\r\n")’
-e:1: warning: string pattern instead of regexp; metacharacters
no longer effective.

What is reason for this change?

Thanks

-Ted

see ruby-talk 44019 and subsequent responses

-transami

···

On Thu, 2002-08-22 at 08:38, mengx@nielsenmedia.com wrote:

Hi:

With the laster cvs version, ruby gives warning

$ruby -e ‘“abc”.split(“\r\n”)’
-e:1: warning: string pattern instead of regexp; metacharacters
no longer effective.

What is reason for this change?

Thanks

-Ted


~transami

Hi,

···

In message “Re: split warning” on 02/08/23, Tom Sawyer transami@transami.net writes:

On Thu, 2002-08-22 at 08:38, mengx@nielsenmedia.com wrote:

Hi:

With the laster cvs version, ruby gives warning

$ruby -e ‘“abc”.split(“\r\n”)’
-e:1: warning: string pattern instead of regexp; metacharacters
no longer effective.

What is reason for this change?

see ruby-talk 44019 and subsequent responses

But still, warning for “\r\n” is too much. I will fix.

						matz.