NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
continued regexps on scalar references (Score:1)
You certainly can. I use this technique extensively in CAM::PDF to incrementally parse a PDF document into a DOM. I pass a scalar reference to the content from one sub to the next.
Without delving too deep into your code, I believe the important bit that you are missing is the "c" flag on the regexp.
Re:continued regexps on scalar references (Score:1)
I didn't know about
I'm glad to know about it, but it should not be an issue here: at no point should the regex fail and then need to match again.
Thanks!
rjbs
Reply to This
Parent