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/;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: printing 20 characters in a line.
by ig (Vicar) on Nov 14, 2008 at 09:24 UTC |
In Section
Seekers of Perl Wisdom