P is for Practical | |
PerlMonks |
Re^2: Regex to replace consecutive tokensby hdb (Monsignor) |
on Oct 18, 2013 at 13:24 UTC ( [id://1058756]=note: print w/replies, xml ) | Need Help?? |
This way you will lose all trailing commas... $s="1,2,3,,5,6,,,9,10,,,,14,15,,,,,,,,,,,,,,," will turn into $s="1,2,3,0,5,6,0,0,9,10,0,0,0,14,15".
In Section
Seekers of Perl Wisdom
|
|