Hi,

At Wed, 30 Apr 2003 19:34:02 +0900,
saggmannen wrote:
> I'm new to ruby, and thus far I mostly like what I've seen. But these
> $_, $&, and the other, ugly style variables that ruby inherited from
> Perl. Let's say I'm not in love with them. Is there an alternative way
> to obtain the same functionality, but in a more verbose and intuitive
> way?

Of course you can use explicit variables.

while (<>) {			while line = gets
  next if /^#/;			  next if /^#/ =~ line
  print;			  print line
}				end
$x = $1 if /foo(.*)/;		x = m[1] if m = /foo(.*)/.match(line)

-- 
Nobu Nakada