>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: ferdinand.bolhar-nordenka...@wien.gv.at "Wenn hier einer schuld ist, dann immer nur der Computer."