You don't need to escape the [ ]. If you want to use a name for the plural suffix $s is quite readable and self documenting :-)
print "[$days] day$s = [$secs] seconds.\n";
In reply to Re^2: Formatting in Perl
by tachyon
in thread Formatting in Perl
by Ms. T.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |