programming-examples/perl/SystemFunction/getprotoent function.pl

8 lines
144 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl
use warnings;
use strict;
while (my ($name, $aliases, $proto) = getprotoent) {
print "$proto $name ($aliases)\n";
}