Explorar o código

Providing better comments for 'use 5.006; use v5.10.0;'

Charles Howes %!s(int64=12) %!d(string=hai) anos
pai
achega
4d88032837
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      lib/Selenium/Remote/Driver.pm

+ 4 - 1
lib/Selenium/Remote/Driver.pm

@@ -2,7 +2,10 @@ package Selenium::Remote::Driver;
 
 use strict;
 use warnings;
-use v5.10.0;
+use 5.006; use v5.10.0;  # Before 5.006, v5.10.0 would not be understood.
+# See http://perldoc.perl.org/5.10.0/functions/use.html#use-VERSION
+# and http://www.dagolden.com/index.php/369/version-numbers-should-be-boring/
+# for details.
 
 use Carp;
 our @CARP_NOT;