[San-Diego-pm] A few questions of Perl

Christopher Hart christopher.p.hart at gmail.com
Wed Dec 9 17:49:10 PST 2009


1. I would assume, (possibly incorrectly) that using the Socket or
IO::Socket modules would provide the inherent ability to open more than one
tcp socket for send/receive. Although i could see being limited in having
more than one [socket bound to a] filehandle open, there are always a
billion ways to do something in perl.

2. I've seen someone do a sleep(undef, undef, undef, 0.2); to wait a
quarter-second, but i can't confirm it works.

good luck :)

2009/12/9 Bob Kleemann <rkleeman at energoncube.net>

> Alex,
>
> I know that you can do what you are looking for, but I haven't done them
> myself.  Therefore I'm forwarding your message to the group to see who has
> some answers for you.
>
> Perl Mongers
>
> Can you help Alex out.  Please include his address on replies, as I don't
> believe he is subscribed to our mailing list yet.  (Alex, see our website
> for information about subscribing to our low-volume list.)
>
> On Tue, Dec 8, 2009 at 11:00 PM, Alex (Yu) Hu <foxele at gmail.com> wrote:
>
>> Hi:
>>
>> I am sorry to E-mail you like this. My name is Alex Hu. I am living in San
>> Diego. I am  working on a perl program that
>> is suppose to be a test application running on PC.
>>
>> I got your E-mail address by following links from Perl Monger website. I
>> needed help urgently and I
>> don't know where to turn to. That's why I am trying your E-mail address.
>>
>> If you don't mind, I have two questions regarding Perl:
>>
>> 1. The perl program I am running has a network interface which is acting
>> like a TCP client. For some
>> reason, I want the client to send message on one port and receive message
>> on the other port. Is this
>> possible in perl?  I have a module does the send and receive on one port,
>> but I don't know how to
>> add a second one.
>>
>> 2. Is there a event scheduler modules I can use to schedule the sending of
>> a message say several milisecond in the future.
>>
>> Once again, I am sorry about my E-mail.
>>
>> Thanks.
>> --
>> Alex Hu
>>
>
>
> _______________________________________________
> San-Diego-pm mailing list
> San-Diego-pm at pm.org
> http://mail.pm.org/mailman/listinfo/san-diego-pm
>



-- 
Respectfully,

Chris Hart
Systems Administrator
Extrameasures, LLC.
8910 University Center Lane, Suite 475
San Diego, CA  92122
Office - 858.546.1052 x32
Fax - 858.546.1057
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/san-diego-pm/attachments/20091209/897fc9a4/attachment.html>


More information about the San-Diego-pm mailing list