in reply to Remove substring

I am puzzled by the question. If $x is the string 'abcdefg', then

my $tail = substr $x, 2;
will assign to $tail the string 'cdefg', which sounds like what you want.

the lowliest monk