----- Original Message ----- 
From: Frank Mitchell <frankm / bayarea.net>
Newsgroups: comp.lang.ruby
To: ruby-talk ML <ruby-talk / ruby-lang.org>; <undisclosed-recipients: ;>
Sent: Saturday, October 20, 2001 2:06 AM
Subject: [ruby-talk:22817] Re: PLease condense my code


> > while gets
> >   print if (!(/=begin/../=end/) && !(/^=[-a-zA-Z0-9. ]*=/))
> > end
> > 
> > It is basically a copy of the perl version.
> 
> Weird.  I thought I tried something like that; I recall the Range seemed
> to get stuck after the "=begin".  It might have been a logic error ...
> plus I keep forgetting that Ruby uses Perlish global variables and
> default arguments.

Hmm... does this work in 1.7.1? 

Hal