my $string = "zero one two three"; $number = (split /\s+/, $string,3)[1];