use of unintialised value in pattern match (m//)... An undefined value was used as if it were already defined
You know, it is helpful if you indicate where the warning occurs.
my $pattern1 =~ /(word)-(spacing):\s*[\d]+px/; # word spacing regexp my $pattern2 =~ /(letter)-(spacing):\s*[\d]+px/; # letter spacing re +gexp
What's that supposed to do? You are matching against undefined variables.
if(/$pattern1 && $pattern2/)
You haven't defined $pattern1 and $pattern2 yet. But if you do, the code above most likely doesn't do what you think it does.
Abigail
In reply to Re: Regexp conundrum
by Abigail-II
in thread Regexp conundrum
by Tricky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |