use strict; local $\ = "\n"; local $_ = 'x' x 1000; my $pat = qr/.{1,60}/; while (/($pat)/g) { print $1; }
In reply to Re: How to divide single string across multiple lines?
by mhearse
in thread How to divide single string across multiple lines?
by Osiris1975
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |