just validate all your data before processing it, i dont think that there is a way to disable a built in perl functionalities. of used is entering "open" just create an if statement or something if($my_str =~ /open/) or $my_str eq 'open' return 0;