CGI - Perl PREG help - please?

  • Thread starter Thread starter Gordon S
  • Start date Start date
G

Gordon S

Guest
Hi,

Basically, I have a perl script (on a timer - so it doesn't do it in one go), to extract Yahoogroups pages, & grabs the member count of selected groups.

It is working, However I find that sometimes it scans the same group multiple times - before going to the next group (Thus slowing down the total time taken...)

The preg I have is :-

$tmp =~ m/(?:Member|Membre|Mitglieder).*?(\d+)/;
if ($1) {

It ONLY records the group as 'scanned' if it matches $1.. - If not, it re-does it...

I'm thinking it must be the semi-colon in ?:Member


- Q1. Is the semicolon correct - Or how to I change it to > (a right angled bracket) within a preg ?

I am familiar with PHP pregs - but unfamiliar with Perl (this is the only script in Perl I have on my site )
 
Back
Top