in reply to line break after 64 characters
Sure,
That's just one of many ways.my $newstring = do { local $_ = $string; my @foo; push @foo, substr($_, 0, 64, '') . "\n" while length; join '', @foo; }
$string =~ s/(.{1,64})/$1\n/g; is another. Untested.
After Compline,
Zaxo
|
|---|