Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
How to make code run differently depending on the platform it is running on?
xarzu - Apr 05 2019 09:17 AM
How do I set a breakpoint in an attached process in visual studio
xarzu - Apr 04 2019 11:47 AM
Recent Blog Entries
Recent Status Updates
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Waiting For Next Stepwait
Posted 16 July 2012 - 11:39 AM
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