4 # Standard feature bundle
10 # Standard feature bundle, no 5.11
12 say utf8::native_to_unicode(ord uc chr utf8::unicode_to_native(233));
16 # Standard feature bundle, 5.11
18 say utf8::native_to_unicode(ord uc chr utf8::unicode_to_native(233));
22 # Standard feature bundle, 5.11
25 say utf8::native_to_unicode(ord "\ué"); # this is utf8
29 # more specific: 5.10.0 maps to 5.10
30 use feature ":5.10.0";
36 use feature ":5.10.1";
42 use feature ":5.10.99";
47 # 5.9.5 also supported
57 ^Feature bundle "5.9" is not supported by Perl \d+\.\d+\.\d+ at - line \d+
63 ^Feature bundle "5.9.4" is not supported by Perl \d+\.\d+\.\d+ at - line \d+
69 ^Feature bundle "5.8.8" is not supported by Perl \d+\.\d+\.\d+ at - line \d+
72 BEGIN { *say = *state = *given = sub { print "custom sub\n" }; }
73 use feature ":default";
83 # SKIP ? not defined DynaLoader::boot_DynaLoader
85 use feature ":default";
87 print qw[a b c][2], "\n";
88 use feature ":5.16"; # should not disable anything; no feature ':all' does that
89 print qw[a b c][2], "\n";
91 print qw[a b c][2], "\n";
93 print qw[a b c][2], "\n";
95 Use of assignment to $[ is deprecated at - line 4.
102 use feature ':5.16'; # turns array_base off
103 no feature; # resets to :default, thus turns array_base on
105 print qw[a b c][2], "\n";
107 Use of assignment to $[ is deprecated at - line 4.
112 print qw[a b c][2], "\n";
113 no feature ':all'; # turns array_base (and everything else) off
115 print qw[a b c][2], "\n";
117 Use of assignment to $[ is deprecated at - line 2.
118 Assigning non-zero to $[ is no longer possible at - line 5.
121 # NAME $^H accidentally enabling all features
122 eval 'BEGIN { $^H |= 0x1c020000 } $_ = evalbytes 12345';
125 Number found where operator expected at (eval 1) line 1, near "evalbytes 12345"
126 (Do you need to predeclare evalbytes?)
127 syntax error at (eval 1) line 1, near "evalbytes 12345"