Seemanto Barua wrote: > Hi All, > > I have perl version 5.00503 installed on sunos machine. Do i need to > add aditional module to use the function getprotobyname ? > > #!/usr/bin/env perl
Are you sure that shebang line is right ? #!/usr/bin/perl or #!/usr/local/bin/perl makes more sense. > print("Name " . (getprotobyname('udp'))[2] . "\n" ); > > The above code when run gives the error: > > "Error Bad file number" I get 'Name 17' on Doze. I can think of no reason a UNIX system would produce poorer results than Doze. You can verify it by checking /etc/protocol to see what 'udp' says. -- ,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED] (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/ -/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff) _______________________________________________ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs