in reply to Regexp conundrum
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regexp conundrum
by Tricky (Sexton) on Aug 22, 2003 at 10:15 UTC | |
by Abigail-II (Bishop) on Aug 22, 2003 at 10:34 UTC |