From 2fc7c56160d49fdaec1ece3acd5ae089beb351fc Mon Sep 17 00:00:00 2001 From: masak Date: Mon, 20 Apr 2009 09:08:50 +0000 Subject: [PATCH] [S11] added 'v' to version numbers within :ver() When the version numbers are within :ver<>, the 'v' can be omitted. But in :ver() they shouldn't be, because they'd be parsed as decimal numbers. git-svn-id: http://svn.pugscode.org/pugs@26304 c213334d-75ef-0310-aa23-eaa082d1ae64 --- S11-modules.pod | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/S11-modules.pod b/S11-modules.pod index 4f471d0e3..69c692fc3 100644 --- a/S11-modules.pod +++ b/S11-modules.pod @@ -329,9 +329,9 @@ Saying C<1.2.1> specifies an I match on that part of the version number, not a minimum match. To match more than one version, put a range operator as a selector in parens: - use Dog:ver(1.2.1..1.2.3); - use Dog:ver(1.2.1..^1.3); - use Dog:ver(1.2.1..*); + use Dog:ver(v1.2.1..v1.2.3); + use Dog:ver(v1.2.1..^v1.3); + use Dog:ver(v1.2.1..*); When specifying the version of your own module, C<1.2> is equivalent to C<1.2.0>, C<1.2.0.0>, and so on. However C searches for @@ -361,7 +361,7 @@ to guarantee that you get the unembraced Perl. C<:-)> For wildcards any valid smartmatch selector works: - use Dog:ver(1.2.1 | 1.3.4):auth(/:i jrandom/); + use Dog:ver(v1.2.1 | v1.3.4):auth(/:i jrandom/); use Dog:ver(Any):auth({ .substr(0,5) eq 'cpan:'}) In any event, however you select the module, its full name is