Can use the $. also. E.g., and not caring for uninitialized warnings:
perl -p056e '$_ .= ("\n")[$. % 5]'
In reply to Re^2: Newline after every 5 periods
by Anonymous Monk
in thread Newline after every 5 periods
by paulm2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |