summaryrefslogtreecommitdiff
path: root/pod/perlmodstyle.pod
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-09-24 21:52:41 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-09-24 21:54:38 -0700
commitfbff26bcac0ac41e44778278aca063f82c1d70e0 (patch)
treeb596642338bff53747492ebdd0ce015e7d90a19a /pod/perlmodstyle.pod
parent8eff31e6ddbcd94a1ff3d6489062907d5b84d9d9 (diff)
downloadperl-fbff26bcac0ac41e44778278aca063f82c1d70e0.tar.gz
Long verbatim lines in perlmodstyle
Diffstat (limited to 'pod/perlmodstyle.pod')
-rw-r--r--pod/perlmodstyle.pod6
1 files changed, 4 insertions, 2 deletions
diff --git a/pod/perlmodstyle.pod b/pod/perlmodstyle.pod
index 5a52eaf9a4..1e9a6a96a4 100644
--- a/pod/perlmodstyle.pod
+++ b/pod/perlmodstyle.pod
@@ -630,9 +630,11 @@ don't want CPAN.pm to list it as most recent use an '_' after the
regular version number followed by at least 2 digits, eg. 1.20_01. If
you do this, the following idiom is recommended:
- our $VERSION = "1.12_01"; # so CPAN distribution will have right filename
+ our $VERSION = "1.12_01"; # so CPAN distribution will have
+ # right filename
our $XS_VERSION = $VERSION; # only needed if you have XS code
- $VERSION = eval $VERSION; # so "use Module 0.002" won't warn on underscore
+ $VERSION = eval $VERSION; # so "use Module 0.002" won't warn on
+ # underscore
With that trick MakeMaker will only read the first line and thus read
the underscore, while the perl interpreter will evaluate the $VERSION