|Pathologically Eclectic Rubbish Lister|
Creating 2 sockets in a script.by shankumajumdar
|on Apr 26, 2010 at 15:19 UTC||Need Help??|
shankumajumdar has asked for the
wisdom of the Perl Monks concerning the following question:
If we need to call a socket in a code but that socket should be created based on a condition.
The condition: If creation of first socket fails the second should be created.
I tried the if condition does not work the function before parsing through the if condition goes to the send condition.
Then I tried with the or but in 3 or the last one takes precedence first....
If some one has any idea/ trick to make it work please let me know..
So, if the primary fails secondry port should be created, then send function should send the message. Thank you