Re: How to pass a ref from a language with no refs

2006-09-27 Thread Mark Stosberg
Mark Stosberg wrote: > > When Perl 5 has references and Perl 6 doesn't, I don't know what to > expect to when I need to pass a hash reference to a Perl 5 routine. > > Such details make no appearance currently in the Perl 6 spec, but I'm > trying to gather them on

Re: the CGI.pm in Perl 6 (create a design on the wiki)

2006-09-19 Thread Mark Stosberg
Juerd wrote: > > It does make sense to have a single toolkit that does all this. It does > not make sense to have a single .pm that does all this. There's > absolutely no need for having all these different tasks in one module. > There's not even any benefit. You can just as well use a couple of >

use perl5:CGI as a solution (was: Re: the CGI.pm in Perl 6)

2006-09-18 Thread Mark Stosberg
Aankhen wrote: > > The major feeling was that there should be no CGI.pm (if someone was > hellbent on using it, they could use the Perl 5 module). In theory, "use perl5:CGI" could be a fine solution. In practice, it hasn't worked out well for me. Even something that seems simple like passing a h

How to pass a ref from a language with no refs (was: Re: use perl5:CGI as a solution)

2006-09-17 Thread Mark Stosberg
Juerd wrote: > > Please note that eventually, perl5:CGI is supposed to work as expected. For that to happen, there will first have be some documentation telling me what expectations to have. When Perl 5 has references and Perl 6 doesn't, I don't know what to expect to when I need to pass a hash

Who uses CGI.pm HTML generation? (was: Re: the CGI.pm in Perl 6)

2006-09-17 Thread Mark Stosberg
David Cantrell wrote: > > I wonder how many people really use the HTML-generating bits of CGI.pm? > I know I never have, nor have they been used that I can remember > anywhere that I've worked, or in any of the non-work projects I've > collaborated in. It's always been 'print ""' or more recently

use perl5:CGI as a solution (was: Re: the CGI.pm in Perl 6)

2006-09-17 Thread Mark Stosberg
Aankhen wrote: > > The major feeling was that there should be no CGI.pm (if someone was > hellbent on using it, they could use the Perl 5 module). In theory, "use perl5:CGI" could be a fine solution. In practice, it hasn't worked out well for me. Even something that seems simple like passing a h

Re: CGI Session management (was Re: the CGI.pm in Perl 6)

2006-09-17 Thread Mark Stosberg
> > I agree completely. In that vein, I think that one thing a lot of web > developers would like to have available more easily would be session > management. In PHP it's as simple as $_SESSION['key'] = 'value'. I > understand that CGI.pm is a fundemantally different concept from PHP and > tha

best practice for web form stickiness (was: Re: the CGI.pm in Perl 6)

2006-09-17 Thread Mark Stosberg
Juerd wrote: > > Personally, I am *against* HTML generating for elements that are not > form fields. And for form fields, I think the solution should be in the > templating thing, not elsewhere. Stickiness makes sense on invalid data > only anyway, and we need to put the error message and a pointer

Re: Trying to use Perl5 modules (documented on wiki)

2006-09-17 Thread Mark Stosberg
Audrey Tang wrote: > > 在 Sep 11, 2006 2:07 PM 時,Trey Harris 寫到: > >> In a message dated Mon, 11 Sep 2006, Richard Hainsworth writes: >>> I am trying to find out how to use (in perl6) perl5 modules that >>> contain subroutines. >> >> Imports from Perl 5 modules don't currently work. > > Actually,

Re: the CGI.pm in Perl 6

2006-09-09 Thread Mark Stosberg
Darren Duncan wrote: > P.S. I originally sent this to just Mark Stosberg yesterday, and he > suggested I sent it to perl6-users for more exposure, so here it is, > slightly edited. And here is my reply to Darren, slightly edited. I'm only interested in CGI.pm so much as it holds

multi subs with identical signatures: should be a warning ?

2006-08-27 Thread Mark Stosberg
First, what's the recommended reference for learning how dispatching to the right 'multi' sub is resolved. ? I'd like to know the expected behavior in this case: multi sub foo () { say "b: " } multi sub foo () { say "a: " } foo(); I would expect it would throw an error or at least a warning, sin