Or maybe you can try a $_="" (untested, just a thought).
Due to the presence of the -l flag, that will still print a newline. The -n solution works fine though.
Hugo
In reply to Re^2: perl -pl with next?
by hv
in thread perl -pl with next?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |