in reply to Re^3: Specifying a range through a variable
in thread Specifying a range through a variable
Be as strict as possible in what you accept. That way, errors are caught as early as possible.my @t = $_[0] =~ /^\s*(-?\d+)\s*\.\s*\.(\s*\.)?\s*(-?\d+)\s*$/;
|
|---|