> Hi.
>
> Apologies for this grossly newbish questions, but I've been poring
> over the REBOL docs, and so far I'm unable to find the REBOL
> equivalent to <STDIN>--or even better, something that would do what
> Perl's "(<>)" does in this fragment:
>
> while (<>) {
> process the input
> };
>
> That is, something that would be able to grab data either from
> <STDIN> or from the command line.
>
> I'm looking for a REBOL way to have a program receive emailed data
> (probably via an /etc/alias pipe), and then perform a couple
> operations on this data.
>
> The data arise from a perl-processed online quiz, and amount to
> comma separated fields. I'll need to email the contents of several
> fields to the address in another, and then to write the whole line to
> a text file (since, as I understand it, REBOL doesn't yet speak to
> SQL databases).
>
> Perhaps I'm just missing something painfully obvious--but I'd be very
> grateful for a helpful nudge....
>
> Best,
> --
> ...Len
>
Hi Len.
For reading stdin you can use functions input (reading)
and input? (checking if something on input), but you need
to run REBOL as cgi (or maybe without console), because in
other cases these functions are binded to keyboard buffer.
But I should warn you: function input? has a bug in version 2.2.0.4.1
(Linux) and maybe in others.
If you wanna just read some mailbox, try to do it via POP protocol
(documented somewhere on www.rebol.com).
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]