use strict;
use warnings;
no warnings 'experimental::refaliasing';
-use vars qw($data $array $values $hash $errpat);
+our ($data, $array, $values, $hash, $errpat);
plan 'no_plan';
# yyerror for the error, rather than croak. yyerror is preferable for
# compile-time errors.
$errpat =
- qr/Experimental $_[0] on scalar is now forbidden .* line 1,(?x:
- ).*Type of arg 1 to $_[0] must be hash or array \(not /s;
+ qr/Experimental $_[0] on scalar is now forbidden .* line 1\.(?x:
+ ).*Type of arg 1 to $_[0] must be hash or array \(not (?x:
+ ).*line 1,/s;
}
# Keys -- errors