Help for this page

Select Code to Download


  1. or download this
    # want fourth word
    my $str   = "one two three four five";
    my @array = split / /, $str;
    my $word  = $array[3];
    
  2. or download this
    my $str  = "one two three four five";
    my $word = ( split / /, $str )[3];