-l simply sets $\ so all you need is
{ local $\ = "\n"; ... }
Be warned that local is dynamically scoped, which means that it will also affect functions called from within the block.
In reply to Re: Setting -l for a block
by ikegami
in thread Setting -l for a block
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |