|
|
| Just another Perl shrine | |
| PerlMonks |
Creating 2 sockets in a script.by shankumajumdar |
| on Apr 26, 2010 at 15:19 UTC ( #836935=perlquestion: print w/ replies, xml ) | Need Help?? |
|
shankumajumdar has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Guys, 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 20100503 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||