use strict; use warnings; #### if($string =~ /# __START_CONFIG__/i) { $action=2; } #### if($value =~ /#\s__START_CONFIG__/i) { $action = 2; }