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.
You keep matching against $str (Score:1)
So if you unroll your loops, you get basically this.
Look for, at the beginning of the string, "J:", followed by a bunch of stuff that isn't a newline. (.+ with
Look for, at the beginning of the string (where we left off), "I:", followed by a bunch of stuff that isn't a newline. Did you succeed? *Remember this spot and proceed*.
Look for, at the beginning of
From perlop (Score:1)