my $str = "abcde"; print substr( $str, 0, 3 );