Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Waiting For Next Step

wait

  • Please log in to reply
No replies to this topic

#1 Luc

Luc

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts
  • Programming Language:Java, Perl
  • Learning:C++

Posted 16 July 2012 - 11:39 AM

Good morning to whom is reading this and thank you for hearing my request.

In my perl project, I have a subroutine call to a subroutine in the same file. This subroutine that may take few seconds before ending all its tasks and the program doesn't wait to continue executing the following lines even if the subroutine isn't done yet. The problem is that it cases confusion on nearly if blocs because the subroutine is closing some extra windows of one application. Then the next line starts a new fresh window of the same application. I close the others before to ultimately avoid confusion. Then I check if all went well, but the subroutine isn't done yet closing the windows if there were any. So my program dies anyway. Is there any way to force Perl to wait until this subroutine is entierly done closing the said windows before going on with creating a new one?

Thanks to the friendly gentlemen that will take their time to consider my problem
Luc
  • 0





Also tagged with one or more of these keywords: wait