Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I need an quick solution for a little problem I have. I have a code that compare two values written as:
SIEBDB = DISK:\db2_backup\ SIEBDB = USEREXIT
Now when I compare two hash values as
$preprod->{$siebdb} = "DISK:\db2_backup\"; $prod->{$siebdb} = "USEREXIT";
Now when I compare the two values in a hash array,
if($preprod->{$siebdb} != $prod->{$siebdb}){ print "NOT EQUAL" } else{ print "EQUAL"; }
Now when ever I compare those two values I always get them as "EQUAL" instead of "NOT EQUA".
How do I compare the values of string with \ or :
any help pleaassseee !!!
Code tags added by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pattern match showes true
by jZed (Prior) on Jul 30, 2007 at 20:09 UTC | |
|
Re: pattern match showes true
by ikegami (Patriarch) on Jul 30, 2007 at 20:09 UTC | |
by Anonymous Monk on Jul 30, 2007 at 20:34 UTC | |
by ikegami (Patriarch) on Jul 30, 2007 at 20:41 UTC | |
|
Re: pattern match showes true
by ysth (Canon) on Jul 30, 2007 at 21:02 UTC | |
by Anonymous Monk on Jul 31, 2007 at 18:47 UTC | |
by FunkyMonk (Bishop) on Jul 31, 2007 at 19:25 UTC | |
by ysth (Canon) on Jul 31, 2007 at 19:35 UTC | |
by Anonymous Monk on Jul 31, 2007 at 19:52 UTC | |
by ysth (Canon) on Jul 31, 2007 at 20:19 UTC |