1. Re: Eu vs perl, strings
- Posted by Ad Rienks <kwibus at ZONNET.NL> Dec 08, 1999
- 567 views
Kat,
puts(1,datastr1[3] & " " & sprintf("%d", charvalues[datastr1[3] - 64] ) &
"\n")
I think this can be rewritten as:
printf(1, "%s %d\n", {datastr1[3], charvalues[datastr1[3]-64]})
or you can put in 1 or 2 extra lines to make things more clear and readable.
without reducing the speed at which it executes.
Ad

