http://qs1969.pair.com?node_id=1076425


in reply to Simultaneously reading from a file and serving data

I'm no expert but: can't you just use a fork? I haven't used it for a while but IIRC it's actually not very hard to use and there are several nice examples in perlipc.

Something like:

if (my $pid = fork()) { # network stuff } else { # file stuff }