This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make like() and unlike() in t/test.pl refuse non-qr// arguments
[perl5.git] / t / uni / readline.t
index a83558e..f865bc0 100644 (file)
@@ -15,7 +15,7 @@ use open qw( :utf8 :std );
 # TARG. Test that we respect SvREADONLY.
 use constant roref=>\2;
 eval { for (roref) { $_ = <Fʜ> } };
-like($@, 'Modification of a read-only value attempted', '[perl #19566]');
+like($@, qr/Modification of a read-only value attempted/, '[perl #19566]');
 
 # [perl #21628]
 {