good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Progressive matching w/substitutionsby broomduster (Priest) |
on Aug 09, 2008 at 10:50 UTC ( [id://703255]=note: print w/replies, xml ) | Need Help?? |
You are correct that there were problems in the OP's code. Since the OP also showed desired output, I was expecting that posted solutions would actually produce that output. Yours and dreadpiratepeter's solutions produced the desired output, but Jstrom's did not.
Or perhaps I misunderstand.
In Section
Seekers of Perl Wisdom
|
|