Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Learning How to Use CVS for Personal Perl Coding Practices

by metaperl (Curate)
on Nov 04, 2005 at 22:35 UTC ( [id://505894]=note: print w/replies, xml ) Need Help??


in reply to Learning How to Use CVS for Personal Perl Coding Practices

I like to version my files automatically by the CVS revision number. Here's how to handle that in Perl:
package Class::Cache; use strict; BEGIN { use Exporter (); use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); $VERSION = ('$Revision: 1.1.1.1 $' =~ m/([\.\d]+)/) ; @ISA = qw(Exporter); #Give a hoot don't pollute, do not export more than needed by defa +ult @EXPORT = qw(); @EXPORT_OK = qw(); %EXPORT_TAGS = (); }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://505894]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found