in reply to Re^3: Specifying a range through a variable
in thread Specifying a range through a variable

my @t = $_[0] =~ /^\s*(-?\d+)\s*\.\s*\.(\s*\.)?\s*(-?\d+)\s*$/;
Be as strict as possible in what you accept. That way, errors are caught as early as possible.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?