#!/usr/local/bin/perl use strict; use warnings; my $string = "This is what you have"; substr($string -12) = "ondrous"; print "$string\n"; #if(substr($string, -8) =~ /you/){ # print "You've already a good programmer!!\n"; #}