perl if condition problem

if ( ( ( $val eq "ssd_max_throttle" ) || ( $val eq "ssd_io_time" ) ) && ( $proc eq "i386" ) ) {
print "im in";
next CONFLINE;
}

The code never goes in to the braces, even though $proc is i386,
and when the larger code parses thru values of Solaris kernel variables, and $var becomes ssd_max_throttle and then ssd_io_time.

If I eliminate the && ( test for $proc ) it goes into the braces.
I have printed out proc just outside this statement, and it is getting set as i386.

What am I doing wrong with this if statement ?

If it works fine when you remove the test for $proc the first thing that comes to mind is something is inside the scalar that you're not anticipating...like a newline or control character.

Try printing with tags to make sure nothing is hidden.

print "\$proc = <$proc>\n";

Goood Luck!

wow, i wasnt chomping the proc variable that i added in later.

Everytime I go back to perl, all my frustrations begin and end with forgetting to chomp something!

Yea, sort of odd how forgetting to "chomp" will "bite" you. ;0) Badabum. I been there lots myself.

-J