Can someone tell me the difference between these two snippets? I'm trying to recognize numbers in a variable and return an error if a number is detected. For example, there is no reason to have a number in the "name" field.
if ($var1 =~ /^[0-9]+$/);
if ($var2 =~ /^\S{11,}$/);