Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: printing 20 characters in a line.by luckypower (Beadle) |
on Nov 14, 2008 at 05:21 UTC ( [id://723565]=note: print w/replies, xml ) | Need Help?? |
hellow .... your code needs some modifications .. in your code if ($count/$align==1){print "\n"; $flag=1;} it will print new line on terminal not in file.so change it with print OUT "\n"; if($flag==1){$count=0;} after this line the value of $flag variable is always 1 so change it ..... One more thing define $flag & $count outside the for loop. no need of $align. you can direct compare the $count == 20 .
In Section
Seekers of Perl Wisdom
|
|