I want to split a string like this. I can do the following.
f1, f2, f3, f4, f5 = 'field1_field2_field3_field4_field5'.split('_')
However, I only need let's say f1 and f4. I do not want to assign other fields (I do not want to keep the others in the memory). I guess I am looking for something like Perl's array slice notation.