MySQL Forums
Forum List  »  Perl

CGI - Perl PREG help - please?
Posted by: Hansika Maan
Date: April 04, 2009 05:14AM

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 )

Replica Watches
Recycling for Business
Cars

Options: ReplyQuote


Subject
Written By
Posted
CGI - Perl PREG help - please?
April 04, 2009 05:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.