HP3000-L Archives

June 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ted Ashton <[log in to unmask]>
Reply To:
Ted Ashton <[log in to unmask]>
Date:
Wed, 28 Jun 2000 20:03:36 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
Thus it was written in the epistle of Eben Yong,
> I apologize for kicking the dead llama but I think you're right.  This is
> exactly what I was looking for.  Thanks!

Since everyone is happy, I won't mention constant subroutines which allow you
to do something like this:

sub PERDAY () { 24*60*60 } # Note the ()
print "$elapsed seconds is approximately ",$elapsed/PERDAY," days.\n";

At compile time, that second line becomes

print "$elapsed seconds is approximately ", $elapsed / 86400, " days.\n";

(just ask B::Deparse, I did :-).

Ted
--
Ted Ashton ([log in to unmask]), Info Sys, Southern Adventist University
          ==========================================================
The imaginary number is a fine and wonderful recourse of the divine spirit,
almost an amphibian between being and not being.
                        -- Leibniz, Gottfried Whilhem (1646-1716)
          ==========================================================
         Deep thoughts to be found at http://www.southern.edu/~ashted

ATOM RSS1 RSS2