From: michael libby Date: 2002-08-10T11:12:00+09:00 Subject: Re: The problem with using $1 in regexps -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 09 August 2002 21:05, michael libby wrote: > The advantage to the OO syntax is that a non-match would raise an error > when you tried to call MatchData#size, because you would be trying to > send 'size' to nil. Which ain't happenin'. For the sake of correctness you would not be calling MatchData#size, but rather MatchData#[] to get at the numbered match. The resulting string is then the receiver for size. -michael ++++++++++++++++++++++++++++++++++++++++++ Michael C. Libby public key: http://www.ichimunki.com/public_key.txt web site: http://www.ichimunki.com ++++++++++++++++++++++++++++++++++++++++++ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9VHP64ClW9KMwqnMRAqcjAKCi62/Ai6drSo/kTeEopfjeJoG6ywCcCU7i BoJzSrQcrF2QpVqv1sb622g= =u5/2 -----END PGP SIGNATURE-----