Do you know where your variables are? | |
PerlMonks |
Re: Re: alpha vs alpha numericby strat (Canon) |
on Jun 13, 2002 at 11:40 UTC ( [id://174152]=note: print w/replies, xml ) | Need Help?? |
Maybe you could split up the line into two statements to find the problem easier:
For the next step, try to replace /\Q$value\E/ with /^\Q$value\E$/<P> If it still works, the only possibility that comes into my mind are newlines (e.g. if you read something from a file or STDIN) in either $ref->{...} or $value. You can remove them with chomp( $ref->{...} ) or the like. Then, $ref->{...} eq $value might work as well.
If you need case insensitive comparisons, try
$ref->{...} =~ /^\Q$value\E/i, or in the next step:
Best regards,
In Section
Seekers of Perl Wisdom
|
|