my $Number = '!56'; if ( $Number =~ /\d*[05]/ ) { say "$Number is divisible by 5."; warn 'Really?'; }