Re: Y2K Problem with MhonArc 2.4.4

2000-01-14 17:18:14
On January 14, 2000 at 19:47, 5-i's wrote:

Everyone seems to be considering number solutions when I see a string

$year = substr ($year, -2);

One must consider performance of converting to and from string to
number by perl.  If $year is always treated as a number, then you save
yourself from auto-conversion to string and back.  Also, what happens
when year is only 1 digit (of course, this should not happen in MHonArc
unless an incorrect date is put on a message).

However, in this case, it is not a real issue.  But it is good to
know about it when programming in Perl if performance is a real


<Prev in Thread] Current Thread [Next in Thread>