in reply to Howto get last items using split

Another slightly different solution is to have as the last element in the list of variables to be stuffed with the split elements, an array. This will then collect all the last elements not stored in the previous variables. Thus you have all the "unused" elements together, nicely separated, ready to be used as and when necessary.
my ($e1, $e2, @e3) = split /\s/, $string;

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James