in reply to Re (tilly) 1: Integer detection concept
in thread Integer detection concept
In this case it is only integers (whole numbers - no decimal places) which are being discussed so they must be stored more sensible and a numerical comparison (==) will be more efficient than comparing the two strings (especially on large numbers, possibly several hundreds of thousands of times through a loop).
I think essentially the eq and ne have to go through both "strings" a character at a time and compare them but == or != can just say these numbers are('nt) the same.
larryk
---------------------------------------------------- $less->{'chars'} = `"time in the pub" | more`; # :-D
|
|---|