Re: Eu vs perl, strings
- Posted by Kat <KSMiTH at PELL.NET> Dec 07, 1999
- 440 views
----- Original Message ----- From: Ad Rienks <kwibus at ZONNET.NL> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Tuesday, December 07, 1999 5:38 PM Subject: Re: Eu vs perl, strings > 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. It's just as complicated, either way. Like i said, i end up trying several versions. Kat