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*$/;
In reply to Re^4: Specifying a range through a variable
by dragonchild
in thread Specifying a range through a variable
by Zubinix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |