in reply to Formatting in Perl
chomp $number_of_days; # assuming this came from <STDIN> my $plural = ( $number_of_days == 1 ) ? '' : 's'; print "\[$number_of_days\] day$plural = \[$number_of_sec\] seconds.\n +";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Formatting in Perl
by tachyon (Chancellor) on Oct 01, 2004 at 03:34 UTC |