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