in reply to some problem with date

To save you a little typing and make your code slightly clearer you can take advantage of the fact that variables interpolate inside double-quoted strings. So, instead of

print $fileAgeInDays, " days since it was created\n\n";

you can do

print "$fileAgeInDays days since it was created\n\n";

Note that interpolation does not occur inside single-quoted strings.

I hope this is of use to you.

Cheers,

JohnGG

Update: Corrected missing dollar sigil. Thanks, ikegami.

Replies are listed 'Best First'.
Re^2: some problem with date
by ikegami (Patriarch) on Apr 13, 2007 at 14:14 UTC
    That should be
    print "$fileAgeInDays days since it was created\n\n";
      Gah! Cut'n'paste error. Corrected, thanks.