Remember that $ has special meaning inside a regex (end of line). I *think* that you need to use the qr operator before the regex to evaluate the contents of $query_el before you perform the regex. Someone please correct me if I'm wrong here.if ($line =~ /^$query_el\]\[.*/i) {
In reply to Re^3: Sort of basic search engine/pattern matching problems
by sierpinski
in thread Sort of basic search engine/pattern matching problems
by bvulnerbility
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |