In reply to Jaygyana:
There is no difference in behavior between any procedural statement written in a module or program block.
There is a difference in scheduling semantics between initial blocks started in a module versus a program block, but I won’t get into that because you should not be using program blocks.