"use charnames qw(.*)" will match any script; it should match none.
use strict;
use warnings;
use File::Spec;
-our $VERSION = '1.19';
+our $VERSION = '1.21';
use bytes (); # for $bytes::hint_bits
# as tested for in
# lookup_names
$^H{charnames_short} = delete $h{':short'} || 0;
- my @scripts = map uc, keys %h;
+ my @scripts = map { uc quotemeta } keys %h;
##
## If utf8? warnings are enabled, and some scripts were given,
is($res, "foo-foo-1--2-3");
}
+{ use charnames qw(.*);
+ ok (! defined charnames::vianame("a"), "Verify that metachars in script names get quoted");
+}
+
{
# Test scoping. Outer block sets up some things; inner blocks
# override them, and then see if get restored.