in reply to printing 20 characters in a line.
If you don't mind losing $str:
GreetZ!,
print "profeth still\n" if /bird|devil/;
$str=~s/((?:\d+ ){20})/$1\n/g; print OUT "$str\n";
GreetZ!,
- ChOas
print "profeth still\n" if /bird|devil/;
In Section
Seekers of Perl Wisdom