You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
like( Føø::Bær->$new_ascii, qr/Føø::Bær=HASH/u, "Can access \$new_ascii, [$new_ascii], stored in a scalar, as a method, through a UTF-8 package." );
122
-
like( Føø::Bær->$new_latin, qr/Føø::Bær=HASH/u, "Can access \$new_latin, [$new_latin], stored in a scalar, as a method, through a UTF-8 package." );
123
-
like( Føø::Bær->$new_utf8, qr/Føø::Bær=HASH/u, "Can access \$new_utf8, [$new_utf8], stored in a scalar, as a method, through a UTF-8 package." );
121
+
like( Føø::Bær->$new_ascii, qr/Føø::Bær=HASH/u,
122
+
"Can access \$new_ascii, [$new_ascii], stored in a scalar, as a method,"
123
+
. " through a UTF-8 package." );
124
+
like( Føø::Bær->$new_latin, qr/Føø::Bær=HASH/u,
125
+
"Can access \$new_latin, [$new_latin], stored in a scalar, as a method,"
126
+
. " through a UTF-8 package." );
127
+
like( Føø::Bær->$new_utf8, qr/Føø::Bær=HASH/u,
128
+
"Can access \$new_utf8, [$new_utf8], stored in a scalar, as a method,"
129
+
. " through a UTF-8 package." );
124
130
{
125
131
local $@;
126
132
eval { Føø::Bær->$newoct };
127
133
like($@, qr/Can't locate object method "[^"]+" via package "Føø::Bær"/u,
128
-
"Can't access [$newoct], stored in a scalar, as a method through a UTF-8 package." );
134
+
"Can't access [$newoct], stored in a scalar, as a method through a"
135
+
. " UTF-8 package." );
129
136
}
130
137
131
-
132
-
like( nèw Føø::Bær, qr/Føø::Bær=HASH/u, "Can access [nèw] as a method through a UTF-8 indirect object package.");
138
+
like( nèw Føø::Bær, qr/Føø::Bær=HASH/u,
139
+
"Can access [nèw] as a method through a UTF-8 indirect object package.");
133
140
134
141
my $pkg_latin_1 = 'Føø::Bær';
135
142
136
-
like( $pkg_latin_1->new, qr/Føø::Bær=HASH/u, 'Can access new as a method when the UTF-8 package name is in a scalar.');
137
-
like( $pkg_latin_1->nèw, qr/Føø::Bær=HASH/u, 'Can access nèw as a method when the UTF-8 package name is in a scalar.');
138
-
139
-
like( $pkg_latin_1->$new_ascii, qr/Føø::Bær=HASH/u, "Can access \$new_ascii, [$new_ascii], stored in a scalar, as a method, when the UTF-8 package name is also in a scalar.");
140
-
like( $pkg_latin_1->$new_latin, qr/Føø::Bær=HASH/u, "Can access \$new_latin, [$new_latin], stored in a scalar, as a method, when the UTF-8 package name is also in a scalar.");
141
-
like( $pkg_latin_1->$new_utf8, qr/Føø::Bær=HASH/u, "Can access \$new_utf8, [$new_utf8], stored in a scalar, as a method, when the UTF-8 package name is also in a scalar." );
143
+
like( $pkg_latin_1->new, qr/Føø::Bær=HASH/u,
144
+
'Can access new as a method when the UTF-8 package name is in a scalar.');
145
+
like( $pkg_latin_1->nèw, qr/Føø::Bær=HASH/u,
146
+
'Can access nèw as a method when the UTF-8 package name is in a scalar.');
0 commit comments