Equivilence not working (forget it)

2002-12-03 Thread Paul Murphy
Don't bother. I have just seen exactly how stupid I am. "multipart" will never match "multitype". == This is driving me nuts! Look at this: if(/Content-Type:\s*(.+)\/(.+);/) { $content = $1; $subtype = $2; print $content; #this returns "multitype" print "1match $1\n"

Equivilence not working

2002-12-03 Thread Paul Murphy
This is driving me nuts! Look at this: if(/Content-Type:\s*(.+)\/(.+);/) { $content = $1; $subtype = $2; print $content; #this returns "multitype" print "1match $1\n" if $1 eq $content; print "2match $1\n" if $1 eq "multitype"; print "3match $1\n" if $content eq "multitype"; } If