I am trying to teach myself network programming in perl and i am at the early stages, one of the first ports that i am trying to connect to on a server is port 13, this port is suppost to provide you with 'daytime' information (basically the time), problem is every server that i try to connect...
sorry should be more specific, when i run the program in dos i get this:
PID=3067 #the id of the current process
the get getppid function is unimplemented at c:\perl programs\fork.pl line 9.
what i find a mystery (even when i use #!c:\perl\bin\perl.exe) is that it recognises the current process...
i am trying to teach myself perl and network programming with perl and i am unsure of what the problem is with the following code:
#!/usr/local/bin/perl
print "PID=$$\n";
my $child = fork();
die "cant fork: $!" unless defined $child;
if ($child > 0){ #parent process
print "parent process...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.