http://qs321.pair.com?node_id=214155


in reply to Re: How to find empty in empty
in thread How to find empty in empty

Um, '+' means at least one (and you don't need the box): ! /^\s*$/ Anyway, it's even easier just to check for a non-space: /\S/ But, as long as we're at it, why not accept only well-formed lines:
if ( /^(\w+)\s+([\d.]+)/ ) { ($names[$l],$versions[$l])=($1,$2); ++$l; else { . . .

  p