From: "Hal E. Fulton" Date: 2001-10-20T16:19:21+09:00 Subject: [ruby-talk:22818] Re: PLease condense my code ----- Original Message ----- From: Frank Mitchell Newsgroups: comp.lang.ruby To: ruby-talk ML ; 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