The Perl Toolchain Summit 2025 Needs You: You can help 🙏 Learn more

#!/usr/bin/env perl
use strict;
use Mo::utils::CSS qw(check_css_class);
$Error::Pure::TYPE = 'Error';
my $self = {
'key' => '1xxx',
};
check_css_class($self, 'key');
# Print out.
print "ok\n";
# Output like:
# #Error [...utils.pm:?] Parameter 'key' has bad CSS class name (number of begin).