AW: XS to return Perl Arrays - and NetWare Select()

[email protected] ("Bolhar-Nordenkampf Ferdinand")
Newsgroups perl.xs
Message-ID <D960CB61B694CF459DCFB4B0128514C20686F6BA@exadv11.host.magwien.gv.at>
>Perhaps you meant:
>
>my ($ro, $wo, $eo) = nw_select(\@ri, \@wi, \@ei, $wait);

That were my first thoughts too when I saw this code - a function can return a single list only - and Perl can't know how this list should be divided in two or more arrays. One has to return a list of scalars holding references to the appropriate arrays (or a single array whose elements contain the references).

Regards, Ferry
--

Ing. Ferry Bolhár-Nordenkampf
Magistrat der Stadt Wien - MA 14
A-1010 Wien
E-mail: [email protected]

"Wenn hier einer schuld ist, dann immer nur der Computer."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.