use strict; use warnings; my $str = ; $str =~ s/treeone/forest/g; print $str;