October 7 2020 Perl 7: An Opinionated Introduction Back

Capturing and Testing Warnings (1)

        use constant roref=>\2;
        eval { for (roref) { $_ = <Fʜ> } };
        like($@, qr/Modification of a read-only value attempted/, '[perl #19566]');


Home Last TOC Copyright © 2020 James E Keenan Back Next