in reply to How to share a varible of main program to different module???

To be honest, I can barely understand what you wrote, neither the comments nor the code. I think you have a module called Response and are trying to access the variable $s from that module, right? I think you need to add an our declaration in the Response module, but you should check the docs for 'our' for your situation. You might also want to check out the docs for 'do', if you're looking for quick-and-dirty configuration.