fix test for 5.21.4 (RT#99195)
[p5sagit/lib-with-preamble.git] / t / strict.t
CommitLineData
dcd0209b 1use strict;
2use warnings FATAL => 'all';
3use Test::More qw(no_plan);
4
5ok(
6 !eval { require lib::with::preamble::example::strict; 1 },
7 'strict example dies'
8);
9
b8ba3341 10like($@, qr{Global symbol "\$orz" requires explicit package name(?: \([^)]+\))? at \S+lib/with/preamble/example/strict.pm line 3}, 'Error has right name and line');