in reply to GUI and web open at the same time

Well. You can, but it just doesn't make any sense:
# in script B: system("scriptA.pl &");
or the other way around (which REALLY won't make sense).

Maybe you'd better explain why you want to do this, as people might come up with a better solution.