Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: subquery in a loop

From: anton:wilddsl:au at: 29-Jun-2006 4:45

Hello John, My first thought is not to redefine QUERY, which is an inbuilt function which may very likely be used by port handler code. But I see the real reason: pgsql://xxxx:xxxx-line:5555/mcdb? How does rebol know to reduce "line" in this url ? Answer: it doesn't. :) Solution: rejoin [pgsql://xxxx:xxxx- line ":5555/mcdb?" ...] or join pgsql://xxxx:xxxx- [line ":5555/mcdb?" ...] (I left out the "select ...") A further suggestion, if each line reliably contains an ip, then I suggest calling it 'ip: ips: read/lines %ip.txt foreach ip utilip [ print ip ... ] Yes, you don't really need the function in there at all. Regards, Anton.