Perl

Check if the word electroencefalografista does not exists in a string

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

my $string = "The longest not accepted word by RAE is: Ciclopentanoperhidrofenantreno";
if ($string !~ /electroencefalografista/) {
    print "Does not match!";
}