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
    How do you get your code to look like code when you post?
      Two nodes for you to look at:

      Writeup Formatting Tips is a good introduction.

      This is where you'll find the answer to your question above: the CODE tag

      Another good node for learning shortcuts is: Shortcuts

      Trek