ok, long day, let me write it like it IS
 concider:
 if ('a' == 'b') { print "foo" } # this will print 'foo', seeing 'a' compared to 'b'  
yields '1' even in
numeric context here
(ie, the RETURN value of the compare, not the representation of the characters)

sorry for the confusion and thanks for poining out the mistake

Chas Owens wrote:

> On 27 Jun 2001 17:45:18 +0200, Jos Boumans wrote:
> > > How do you mean?
> >
> > concider:
> > if ('a' == 'b') { print "foo" } # this will print 'foo', seeing 'a' and 'b' both 
>yield '1' in numeric
> > context here.
>
> You mean 0 not 1 don't you?
>
> >
> > however
> >
> > $x = 'a';
> > print $x + 4;
> >
> > will print '4';
> >
> > Jos Boumans
> >
> >
> > > Converting 'a' to a number gives 0.
> > >
> > > --
> > > Paul Johnson - [EMAIL PROTECTED]
> > > http://www.pjcj.net
> >
> >
> --
> Today is Pungenday, the 32nd day of Confusion in the YOLD 3167
> Kallisti!

Reply via email to