Further, you don't seem to be using the submatch at all, so you could drop the parens:$buf =~ m/(\n*)$/s;
But I'm just doing this by sight. I haven't tested to be sure.$buf =~ m/\n*$/s;
In reply to Re: File Truncation Problem
by Orsmo
in thread File Truncation Problem
by The_Rev
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |