Baz has asked for the wisdom of the Perl Monks concerning the following question:
I tried it with an IF, and it printed the first match fine.my $count; while($response->content =~ /pcd=BT(\d+)/g) { print $count++,$1,"\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Infinite loop regex
by MrNobo1024 (Hermit) on Aug 04, 2002 at 02:06 UTC | |
by jsprat (Curate) on Aug 04, 2002 at 17:07 UTC | |
by Baz (Friar) on Aug 04, 2002 at 02:15 UTC | |
by fuzzyping (Chaplain) on Aug 04, 2002 at 04:23 UTC | |
| |
by fruiture (Curate) on Aug 04, 2002 at 09:20 UTC | |
|
Re: Infinite loop regex
by YuckFoo (Abbot) on Aug 04, 2002 at 12:08 UTC | |
by tlhf (Scribe) on Aug 04, 2002 at 13:43 UTC | |
by rjray (Chaplain) on Aug 04, 2002 at 23:03 UTC | |
|
Re: Infinite loop regex
by broquaint (Abbot) on Aug 04, 2002 at 11:45 UTC |