Re: proposed RFC. lindex() function...

2000-09-26 Thread Webmaster
Dear Iain, I had a few moments, so I tried to put together a subroutine that would express what I was thinking. It's attached with the script that I used to test it. Grant M. [EMAIL PROTECTED] lndxexmp.pl lindex.pl

proposed RFC. lindex() function...

2000-09-25 Thread Webmaster
Anyone want to pick up this? I just don't have the time, but I would like to see it in Perl6. = =head1 TITLE Builtin list context lindex() function =head1 VERSION Maintainer: NA <[EMAIL PROTECTED]> Date: 09 SEP 2000 Version: 0 Mailing List: perl6-language Numb

Re: RFC 168 & 267 regarding builtins...

2000-09-21 Thread Webmaster
Both RFC 168 & 267 complain about the inability to override builtins. What if p6 simply require all user defined functions to be called using the &func syntax, and that builtins require the bareword syntax? This way any builtin could be overridden and it would be immediately recognizable as an ove

Re: RFC 262 (v1) Index Attribute

2000-09-20 Thread Webmaster
Graham Barr Wrote: >Well if there ever is a way to shortcut grep this could be genera;ized >to > > my $index = grep { break if $_ eq $seek; 1 } @items; Wouldn't this also assume that grep return the number of times the block was NOT true, rather than it's current implementation of the number of

Re: RFC 262 (v1) Index Attribute

2000-09-20 Thread Webmaster
David Nicol Wrote in RFC 262: >foreach $item (@items){ >#print "$item was at location ",$item:n,"\n"; >print "$item was at location ${item:n}\n"; >}; What would really be nice here is an C function, similar to the scalar version, that returns the index of the matching entry in a list. For instanc

Forking multiple socket connections

2000-09-15 Thread webmaster UtopiaNet ISP
My question: using IO::SOCKET, i need to connect to multiple server at once. The server side works very well; it only waits for connections over a fixed IP,port. How can i write the client-side? Please help me!