fiddler42 has asked for the wisdom of the Perl Monks concerning the following question:
printf MERGE (" %-s %s \(%2.4f %2.4f\)\n","$var1","$var2","$var3","$var4")
...and have, say, $var1 -> $var4 printed at col number 1, 20, 180, and 200, respectively. Should I just used \s deliminators? If so, how? I don't want to use the write command because the format would be difficult to keep tidy from one line to the next (there are hundreds of variables.)
Help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Formatting an output with printf
by kabel (Chaplain) on May 27, 2003 at 04:39 UTC | |
by TVSET (Chaplain) on May 27, 2003 at 09:02 UTC | |
|
Re: Formatting an output with printf
by Zaxo (Archbishop) on May 27, 2003 at 05:17 UTC | |
|
Re: Formatting an output with printf
by grep (Monsignor) on May 27, 2003 at 05:56 UTC | |
|
Re: Formatting an output with printf
by Jenda (Abbot) on May 27, 2003 at 21:46 UTC |