use strict; use warnings; my $s = 'fred'; $s = substr($s,0,1) . undef . substr($s,3);