Chris Nandor wrote: > > At least, this makes the Camel wrong as I read it. But it seems clear to > me that these scalars are typed as strings and as numbers depending on how > you used it. Else ~$x would always produce the same thing, since in every > case $x == 1 (and $x eq '1' :). > The Camel also states that the bitwise operators are one of the few places where Perl actually does care whether a scalar is a number or a string. (And I suppose the only reason for that is because there aren't two sets of bitwise operators, as there are two sets of comparison operators.) Ronald