in reply to Variable Length Parsing

You're trying to break this into words, right? Why not use split()?

my ( @words ) = split /\s/, $line;

Replies are listed 'Best First'.
Re^2: Variable Length Parsing
by Aristotle (Chancellor) on Jun 08, 2003 at 23:49 UTC
    That will find you an empty string between each of a series of consecutive whitespace characters. You probably want \s+ unless you're really splitting fields separated by exactly one blank each.

    Makeshifts last the longest.