cvs-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cvs-cvs] ccvs/contrib ChangeLog log_accum.pl


From: Derek R. Price
Subject: Re: [Cvs-cvs] ccvs/contrib ChangeLog log_accum.pl
Date: Thu, 03 Aug 2006 22:18:46 -0400
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark D. Baushke wrote:

>     sub STATE_NONE    () { 0; }
>     sub STATE_CHANGED () { 1; }
>     sub STATE_ADDED   () { 2; }
>     sub STATE_REMOVED () { 3; }
>     sub STATE_LOG     () { 4; }

The perldoc page on constant wasn't very clear.  It sounded like they
said constants were introduced before 5.01, though rereading it they may
only have meant that the perl compiler substitutes constant values for
constant functions without subroutine call overhead as of 5.01.

Anyhow, I used only the above part of your suggestion, for simplicity's
sake.

I did leave out the prototypes.  Do you know for certain that they will
work for all perl 5.x?

Thanks,

Derek
- --
Derek R. Price
CVS Solutions Architect
Get CVS support at Ximbiot <http://ximbiot.com>!
v: +1 248.835.1260
f: +1 248.835.1263
<mailto:address@hidden>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE0q6GLD1OTBfyMaQRAncdAKD0zsRL5pjVTEbFa2uMEl3FYSyFMgCg/rE+
A3QYoRfLtSR8qdOgxe0NyD4=
=CVr5
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]