P is for Practical | |
PerlMonks |
Re: parsing a txt fileby ssandv (Hermit) |
on Nov 09, 2010 at 17:25 UTC ( [id://870361]=note: print w/replies, xml ) | Need Help?? |
The simple way to do it is one that makes sense when you look at the code again in 3 months, not the one that uses the fewest characters or lines of code. I think the only way to do it with just a single s/// involves some ugly lookahead/look behind stuff, and would probably run very slowly.
In Section
Seekers of Perl Wisdom
|
|