http://www.perlmonks.org?node_id=1070088

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have a file with these values,
Name a b c d e f g h
How can i save the first 3 values i.e. (a,b,c) to 3 different variables? i.e.
$i = a $j = b $k = c
Need to repeat till the end of the file, so the next iteration these variable should have values,
$i = d $j = e $ = f