Linux, CPAN

djberg96 on 2002-08-12T14:12:43

A discussion on comp.unix.programmer solved the problem I was having with the getprotent_r() function on Linux. Turns out you have to use the negation operator in a while loop, i.e. "while(!getprotent_r(p,buffer,BUF_SIZE,&q))". This makes no sense, but it works. I'm personally noting it as a bug, since getprotent doesn't work this way, and even Solaris' getprotoent_r doesn't work this way.

As for the new CPAN - I like it! Looks snazzy. I think my favorite new feature is that the 'recent' page now includes the description line. Of course, this means I have to go back and fix the documentation in some of my older modules so that it shows up correctly.

To all the nay-sayers who gripe about CPAN - bite me.