[#863] RDtool-0.5.0 — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp>
Hi,
18 messages
1999/10/23
[#864] Re: RDtool-0.5.0
— matz@... (Yukihiro Matsumoto)
1999/10/26
Hi,
[#865] Re: RDtool-0.5.0
— Toshiro Kuwabara <toshirok@...3.so-net.ne.jp>
1999/10/26
Hi,
[#866] Re: RDtool-0.5.0
— matz@... (Yukihiro Matsumoto)
1999/10/26
Hi,
[#892] Re: RDtool-0.5.0
— Toshiro Kuwabara <toshirok@...3.so-net.ne.jp>
1999/10/31
Hi,
[#894] Re: RDtool-0.5.0
— matz@... (Yukihiro Matsumoto)
1999/11/01
Hi,
[#905] Re: RDtool-0.5.0
— Toshiro Kuwabara <toshirok@...3.so-net.ne.jp>
1999/11/04
Hi,
[#906] Re: RDtool-0.5.0
— matz@... (Yukihiro Matsumoto)
1999/11/04
Hi,
[#907] Re: RDtool-0.5.0
— Kazuhiro HIWADA <hiwada@...>
1999/11/04
Hi,
[#908] Re: RDtool-0.5.0
— kjana@... (YANAGAWA Kazuhisa)
1999/11/05
In message <19991105025532K.hiwada@kuee.kyoto-u.ac.jp>
[#867] call with a Proc — ts <decoux@...>
11 messages
1999/10/28
[#868] Re: call with a Proc
— gotoken@... (GOTO Kentaro)
1999/10/28
Hi,
[#877] local / dynamic variables — ts <decoux@...>
11 messages
1999/10/29
[#878] Re: local / dynamic variables
— gotoken@... (GOTO Kentaro)
1999/10/29
Hi,
[ruby-talk:00888] Re: local / dynamic variables
From:
matz@... (Yukihiro Matsumoto)
Date:
1999-10-30 14:17:59 UTC
List:
ruby-talk #888
Hi,
In message "[ruby-talk:00887] Re: local / dynamic variables"
on 99/10/30, ts <decoux@moulon.inra.fr> writes:
| I'm always surprised (I came from perl) :-)
Perl and Ruby are similar, but not same, as you know.
|G> (lines + "\n").each_with_index{|w,i| break if /z/ =~ w}
| Is this equivalent to w =~ /z/ ?
Yes. Both String and Regexp class have the method =~ to match.
In Ruby, using Regexp method (e.g. /z/ =~ w) is preferred way.
Because pattern matching is considered to be the function of the
Regexp class. But in case `String =~ String', the latter string is
considered as the pattern, following the tradition.
| Apparently it has 2 differents node (MATCH2 and MATCH3)
MATCH2 and MATCH3 are just performance tweaking.
matz.