#!/usr/local/bin/perl use strict; use warnings; my $string = "This is what you have"; print "$string\n"; substr($string, 5, 2) = "wasn't"; print "$string\n"; substr($string, -12) = "ondrous"; print "$string\n"; substr($string, 0, 4) = ""; print "$string\n";