I have trouble understanding how this will remove multiple newlines as you say. Am I missing something?If the trailing /g on an anchored s///g actually had some effect, maybe it would strip off all trailing newlines. But as it is, it doesn't.
In reply to Re^3: Redefining chomp()
by Roy Johnson
in thread Redefining chomp()
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |