in reply to 'global' variables in small scripts -- a question of style?

Sometimes globals win out. Your code seems fine to me, but this line:
$VERSION = '$Revision';
should probably have a comment explaining that (even though you and i know it) $Revision is a CVS variable, and the single quotes are indeed intentional. Otherwise, it just looks like an error to someone who may not be experienced with CVS.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)
  • Comment on (jeffa) Re: 'global' variables in small scripts -- a question of style?
  • Download Code

Replies are listed 'Best First'.
Re: (jeffa) Re: 'global' variables in small scripts -- a question of style?
by Tomte (Priest) on Jun 12, 2003 at 15:14 UTC

    Leading to my first editor-request ;-), the line should read

    $VERSION = '$Revision$;

    I will never have a thorough enough review by preview it seems ;-)

    regards,
    tomte


    Hlade's Law:

    If you have a difficult task, give it to a lazy person --
    they will find an easier way to do it.