http://www.perlmonks.org?node_id=847981


in reply to Sharing variables between applications

Why not send a command line argument to app2?
system 'app2.pl word';
Alternatively you could set an environment variable:
system "X=word; app2.pl";
and app2 would have to look for it in %ENV

HTH,
SSF