NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
CVS (Score:1)
It's a cool hack, but I use something else to avoid having to modify the version number twice. I don't modify the version number at all - I let CVS do that for me:
And since I use a template to start a module with, I never have to remember to set the version number.
Not a cool hack, but something I do use for CPAN modules.
Re:CVS (Score:1)
Yeah, over on PerlMonks, David Golden suggested something conceptually very similar, where he uses Pod::WikiDoc [cpan.org] to handle POD that looks like this:
And then he has a few custom rules in Build.PL as documented in Pod::WikiDoc::Cookbook [cpan.org], so that Some::Module->VERSION is substituted into place at ./Build dist time.
I like that approach a little better for the reason Dominic mentioned – I don’t want to leave version numbers to CVS.
Reply to This
Parent