Hi,

At Tue, 22 Feb 2005 04:28:37 +0900,
Ryan Davis wrote in [ruby-core:04458]:
> Can we make the fact that it is of limited use more obvious? Like, 
> maybe add a warning if that shorthand is used?

  $ echo 'while gets; print if /^b/../^c/;end' > foo.rb
  $ ruby -w foo.rb
  foo.rb:1: warning: range literal in condition

> What enables it to work in the shorthand (-e) from, but not in regular 
> use?

In old versions, it worked in regular use, as well as Perl.

-- 
Nobu Nakada