i'm not sure i follow where you want to go...
are you trying to compare ascii value? or length of a string?
stricly speaking 'foo' == 'bar' since both should yield 3.
and if you want to compare on a being in the alphabet before b, you'd want
something like:
if (a lt b) { print "foo" }
perldoc perlop for more on this
hth,
Jos Boumans
----- Original Message -----
From: "Nick Transier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2001 9:30 PM
Subject: comparing strings
> Does anyone know a way to make boolean comparisons between strings?
> For example, I want 'a' < 'b' to be true, but perl says 'a' == 'b' is
true.
>
> Thanks,
> -Nick
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>