From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

#!perl
use strict;
use Test::More tests => 1;
# fixture: set up a conflicting underscore package
{
package _;
sub foo;
}
throws_ok { require Util::Underscore } qr/\AThe package "_" has already been defined/;