in reply to get substring when you know START and END???

You can use substr:
my $start = 12; my $end = 27; #my $substring = substr $string, $start - 1, $end - 1; #Ooops, that should be: my $substring = substr $string, $start - 1, $end - ( $start - 1 );

Replies are listed 'Best First'.