printf makes this sort of thing so much more readable....
printf "[$days] day%s = [%d] seconds.\n", ($days!=1)?'s':'', $days*24* +60*60,
In reply to Re^2: Formatting in Perl
by tachyon
in thread Formatting in Perl
by Ms. T.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |