[SR-Users] ~ operator has no effect

Juha Heinanen jh at tutpro.com
Tue May 17 17:13:40 CEST 2011


according to core cookbook:

~ : bitwise NOT

however, looks like it has no effect.  i have

        $var(test) = ~2;
        xlog("L_INFO", "test is <$var(test)>\n");

and i get to syslog:

May 17 18:10:40 sip /usr/sbin/sip-proxy[29280]: INFO: test is <2>

have i misunderstood the operator or is there a bug?

-- juha



More information about the sr-users mailing list