glemley8 has asked for the wisdom of the Perl Monks concerning the following question:
I wrote a script that runs several "subscripts", using the 'system' command. I'd like a subscript to be able to declare and communicate a variable to my master script. For example, if "event1" occurs during the subscript, tell the master script that it did occur. I tried using the "our" variable declaration but had no luck (I've successfully used it elsewhere though).
I'm sure this is a very elementary thing, but I'm having trouble finding the correct way to do it.