in reply to Don’t Repeat Your… version number
and then i have a test that calls the __test_version() method.my $version_pod = <<'=cut'; =pod =head1 NAME Foo.:Bar - blah =head1 VERSION $VERSION = "0.71" =cut our $VERSION = "0.71"; ... sub __test_version { my $v = __PACKAGE__->VERSION; return 1 if $version_pod =~ m/VERSION.*\Q$v/; return; }
additionally, Test::Pod fails with your hack. =)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Don't Repeat Your version number
by Aristotle (Chancellor) on Jul 21, 2006 at 22:01 UTC |