lt, le, ge, gt, eq, ne and cmp all do lexical comparisons. <, <=, >=, >, ==, !=, and <=> do numerical comparisons.
"89" le "100" is false. but "89" <= "100" is true. If you are trying to sort lexcally but you have some numeric data tossed in: @array = ('foo','bar','23 Skidoo','pizza',',100 bottles of beer','665 neighbor of the beast',93); Then you may want to use both $a < $b or ($a == $b and $a le $b) If you are rolling your own sort, it might look like would look like: @array = sort {$a <=> $b or $a cmp $b} @array; the new order is: ('23 Skidoo',93,'100 bottles of beer','665 neighbor of the beast','bar','foo','pizza'); - Johnathan Dittrich G. Michael wrote: >I do: >$lowerlimit = "89" le "100"; >response "" > >I do: >$lowerlimit = "89" le "99"; >response "1" > >please help me! I dont get it! is this a bug? or am I nuts? > >perl -ver >"This is perl, version 5.005_03 built for i386-freebsd" >-- >berlin.de - meine stadt im netz. Jetzt eigene eMail-adresse @berlin.de sichern! >http://www.berlin.de/home/MeineStadt/Anmeldung > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]