in reply to Re: Formatting in Perl
in thread Formatting in Perl
printf makes this sort of thing so much more readable....
printf "[$days] day%s = [%d] seconds.\n", ($days!=1)?'s':'', $days*24* +60*60,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Formatting in Perl
by Ms. T. (Novice) on Oct 01, 2004 at 21:01 UTC | |
by TrekNoid (Pilgrim) on Oct 01, 2004 at 21:18 UTC |