It is an option. There are others as well (c, i, m, o, s, and x). It modifies the way the regexp is interpreted (in this case: match all occurances of pattern instead of the default: match first occurance). Was this the information you were looking for are do you want a more detailed discussion of have it affects the Perl interpreter (something I am not qualified to talk about)? On 25 Jun 2001 11:21:08 +0100, Sally wrote: > Cheers, that's all a book had to say (and I've got loads). > > Sally > > -----Original Message----- > From: Robert Graham [mailto:[EMAIL PROTECTED]] > Sent: 25 June 2001 11:19 > To: Sally; perl > Subject: Re: /g > > > Sally > > The /g does a global match. In other words it finds all occurences of the > pattern. > > Kind regards > Robert Graham > [EMAIL PROTECTED] > Tel: (012) 309 3075 > Fax: (012) 323 4518 > South African Weather Bureau > ***************************** > Call our Weatherline at: 082 162 > Visit our web site at : www.weathersa.co.za > > > ----- Original Message ----- > From: "Sally" <[EMAIL PROTECTED]> > To: "perl" <[EMAIL PROTECTED]> > Sent: Monday, June 25, 2001 12:11 PM > Subject: /g > > > > when evaluating strings what exactly does /g do at the end of a lot of > > evaluation expressions eg: > > > > $string =~ /(.)/g > > > > Is it some sort of end or finish statement? I've seen it used loads but no > > book explains it. > > > > Thanks, > > > > Sally > > > > ps. I do know what the above expression does, I'm only concerned with the > > explicit meaning of /g > > -- Today is Sweetmorn, the 30th day of Confusion in the YOLD 3167 Keep the Lasagna flying!