# want fourth word my $str = "one two three four five"; my @array = split / /, $str; my $word = $array[3];