develooper Front page | perl.perl6.language | Postings from April 2005

Re: -X's auto-(un)quoting?

Thread Previous | Thread Next
From:
Matt
Date:
April 22, 2005 14:08
Subject:
Re: -X's auto-(un)quoting?
Message ID:
op.spnjo2jt8hsiyb@codeslut
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About