Hi
i've got this simple regexp code. when i run it with use strict i get the following warning msg: "Use of uninitialized value in concatenation (.) or string .." at the line of the regexp match pattern. can anybody tell me what did i do wrong ??
thanks,
Code:
my $x = "1-6";
if ($x =~ /^\s*([0-9]+)\-([0-9]+)$\s*$/) {
print "SUCCEED \n";
} else {
print "FAILED \n";
}
thanks,
Comment