sub wanted { if (-f) { tie my @array, 'Tie::File', $_ or die $!; s/\$Log/\$History/gi for @array; untie @array; } } #### s/^\$Log\b/\$History/