Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
RE: Update: Parsing and \G and /g and Stupid User Tricksby jlistf (Monk) |
on Aug 08, 2000 at 19:04 UTC ( [id://26799]=note: print w/replies, xml ) | Need Help?? |
that should be:
or if you don't want to capture it. just a minor point, but that could break the code. also, instead of iterating repeatedly with the loop to find pos(), you could set pos() to $currpos and work from there (you'd have to match two more times, i think). that'll make it a little faster. jeff
In Section
Seekers of Perl Wisdom
|
|