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
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
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
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
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
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!