in reply to Regular expression match in code
if ($str eq $var)
Which is not a regex match, but an exact string comparison.
I'd also advise you to use strict; use warnings; in your code, and post code that we can actually run (ie not containing references to config files we don't know about, modules we don't have access to etc.), and reduce it to the part that's actually relevant.
You can use Data::Dumper to inspect your data structures.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular expression match in code
by truptivk (Novice) on May 12, 2010 at 08:40 UTC | |
by moritz (Cardinal) on May 12, 2010 at 08:50 UTC | |
by truptivk (Novice) on May 12, 2010 at 09:06 UTC | |
by moritz (Cardinal) on May 12, 2010 at 09:24 UTC | |
by truptivk (Novice) on May 12, 2010 at 09:45 UTC | |
| |
by AnomalousMonk (Archbishop) on May 12, 2010 at 20:48 UTC | |
by truptivk (Novice) on May 13, 2010 at 09:16 UTC | |
by ig (Vicar) on May 12, 2010 at 09:20 UTC |