Author: masak
Date: 2009-04-20 11:08:50 +0200 (Mon, 20 Apr 2009)
New Revision: 26304

Modified:
   docs/Perl6/Spec/S11-modules.pod
Log:
[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.

Modified: docs/Perl6/Spec/S11-modules.pod
===================================================================
--- docs/Perl6/Spec/S11-modules.pod     2009-04-20 08:44:36 UTC (rev 26303)
+++ docs/Perl6/Spec/S11-modules.pod     2009-04-20 09:08:50 UTC (rev 26304)
@@ -329,9 +329,9 @@
 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<use> searches for
@@ -361,7 +361,7 @@
 
 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

Reply via email to