On Fri, 22 Apr 2005 15:09:21 -0400, Juerd <juerd@convolution.nl> wrote:
> Matt skribis 2005-04-22 14:44 (-0400):
>> mailto isn't something you can "open" really, for read at least.
>
> No, but writing to it ought to simplify things :)
>
> given open 'mailto:matt@weakmind.org' {
> .say(q0:to<.>
> Subject: Useful mailto open
> User-Agent: Perl 6
> In-Reply-To: <op.spnc0sii8hsiyb@codeslut>
> Hello, world!
> .
> );
> .close or fail;
> }
>
Good point, I didn't think of that :) That would be awesome if you could
do that in perl6 without needing any extra libraries.
What about ftp?
given open 'ftp://user:pass@address:port' {
.say(q0:USER username
PASS password
);
.close or fail;
}
Though I'm not sure exactly how the FTP protocol works :)
Thread Previous
|
Thread Next