Re: Environment variables

2005-02-22 Thread Autrijus Tang
On Tue, Feb 22, 2005 at 04:17:53PM +0100, Rafael Garcia-Suarez wrote: > Here's a patch to add this. It's heavily cargo-culted, I need to read > some docs about haskell some day. As I wasn't able to get FiniteMaps to > work I implemented my own kludgy function to flatten pairs for the hash. > Also I

Re: Environment variables

2005-02-22 Thread Rafael Garcia-Suarez
Autrijus Tang wrote: > jn Tue, Feb 22, 2005 at 10:54:26AM -, Rafael Garcia-Suarez wrote: > > I had this silly idea, to try to add %ENV to pugs. That would be an > > interesting exercise. So I can write CGI scripts. Maybe. But I don't > > know what's the Right way to do it in Perl 6. Any hints ?

Re: Environment variables

2005-02-22 Thread Autrijus Tang
On Tue, Feb 22, 2005 at 06:51:24AM -0600, Patrick R. Michaud wrote: > This might initially work for read-only access/testing, but in > the long run I suspect that %*ENV will be tied directly to the > C putenv/getenv calls or their Parrot/other equivalents. > Assigning to %*ENV should change the e

Re: Environment variables

2005-02-22 Thread Patrick R. Michaud
On Tue, Feb 22, 2005 at 08:35:49PM +0800, Autrijus Tang wrote: > jn Tue, Feb 22, 2005 at 10:54:26AM -, Rafael Garcia-Suarez wrote: > > I had this silly idea, to try to add %ENV to pugs. That would be an > > interesting exercise. So I can write CGI scripts. Maybe. But I don't > > know what's the

Re: Environment variables

2005-02-22 Thread Autrijus Tang
jn Tue, Feb 22, 2005 at 10:54:26AM -, Rafael Garcia-Suarez wrote: > I had this silly idea, to try to add %ENV to pugs. That would be an > interesting exercise. So I can write CGI scripts. Maybe. But I don't > know what's the Right way to do it in Perl 6. Any hints ? In Perl6 I think you do it