From: Gavin Sinclair Date: 2002-11-10T22:24:56+09:00 Subject: Re: Lighting Rod From: "Alan Chen" > That and the alternatives to some are a little more verbose. I'm thinking of > the Regex match variables $1, $2, etc... > > Now I'm curious, how many people use this: > > if( str =~ /pattern/) > # .. do stuff with $1, $2, et al.. > > versus this: > > if( m = /pattern/.match(str) ) > # do stuff with match obj. m > > Alan Chen I'm perfectly happy with str =~ /pattern/ But I do use OO regexen whereever I can, to answer your broader question :) Gavin