[REBOL] Re: subquery in a loop
From: anton:wilddsl:au at: 29-Jun-2006 4:45
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:
How does rebol know to reduce "line" in this url ?
Answer: it doesn't. :)
rejoin [pgsql://xxxx:xxxx- line ":5555/mcdb?" ...]
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 [
Yes, you don't really need the function in there at all.