(split /$separator/, $line) #### my $third_elmnt = (split /$separator/, $line)[2]; #### [split /$separator/, $line];