firmament has asked for the wisdom of the Perl Monks concerning the following question:
open (INFILE, "<", $infile) or die $!; open (OUTFILE, ">:raw", $outfile) or die $!; while ( <INFILE> ) { chomp; printf OUTFILE '%-200s', $_; } close INFILE; close OUTFILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Write padded output without newline
by daxim (Curate) on Mar 06, 2013 at 12:37 UTC | |
by firmament (Novice) on Mar 06, 2013 at 13:17 UTC | |
|
Re: Write padded output without newline
by RichardK (Parson) on Mar 06, 2013 at 12:59 UTC |