According to O'Reilly's Programming Perl book,
getprotobyname is a perl built in function, so no
additional modules are required.
I've tried your code on both SunOS 5.6 and SunOS5.8
with perl 5.00503 and receive no errors.

Have you tried your code with other comm protocols? 
Ie substitute the udp with tcp?

JD

--- Seemanto Barua <[EMAIL PROTECTED]> 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 
> 
>            print("Name " .
> (getprotobyname('udp'))[2] . "\n" );
> 
>  The above code  when run gives the error:
> 
>   "Error Bad file number"
> 
> -thanks
> _______________________________________________
> Perl-Unix-Users mailing list
> [EMAIL PROTECTED]
> To unsubscribe:
> http://listserv.ActiveState.com/mailman/mysubs
> 



                
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to