nysus has asked for the wisdom of the Perl Monks concerning the following question:
which, in case you can't tell, is trying to print out three columns, one for each field, with a minimum width of 18. I just get some weird errors. The perldoc on sprintf and printf seems just about useless unless you are familiar with Cs sprintf function. Can someone point me to a tutorial on this function?printf %s18 %s18 %s18, ($ip_date_time[$i]{ip}, $ip_date_time[$i]{date} +, $ip_date_time[$i]{time}, "\n");
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot";
$nysus = $PM . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using printf
by busunsl (Vicar) on Jul 02, 2001 at 14:34 UTC | |
|
Re: Using printf
by $code or die (Deacon) on Jul 02, 2001 at 14:27 UTC | |
|
Re: Using printf
by clemburg (Curate) on Jul 02, 2001 at 14:21 UTC | |
by arturo (Vicar) on Jul 02, 2001 at 15:06 UTC | |
|
(bwana147) Using printf
by bwana147 (Pilgrim) on Jul 02, 2001 at 18:32 UTC | |
|
Perl w/o C
by petdance (Parson) on Jul 02, 2001 at 18:38 UTC |