in reply to Shared.pm
Hmm, I'm confused. I tried running your example in the pod documentation, and some process didn't get killed after die()ing on send_data(). I got curious, and placed a few debug statements:
me@myhost /home/me> perl test.pl Listening on 55644 Can't connect to 127.0.0.1:55648: Bad file number at test.pl line 5 (* +) Caught SIGCHLD for 10701 ^C (*) I changed this die() to a croak()
Hmm?? Shared::Retriever is apparently listening on port 55644, and the new() of Shared::Local is trying to connect to 55648?
Wouldn't this then be better if you standardized on some default port, so that you can create Shared::Remote objects without knowing the remote port?
I apologize if I'm missing the point...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Shared.pm
by jryan (Vicar) on Dec 07, 2001 at 04:21 UTC | |
by lestrrat (Deacon) on Dec 07, 2001 at 07:41 UTC | |
by jryan (Vicar) on Dec 07, 2001 at 08:48 UTC | |
by lestrrat (Deacon) on Dec 08, 2001 at 13:17 UTC |