in reply to dynamic socket communication
Store it in a file.
If your data is more complicated you could even use a data serialization module like Data::Dumper, Storable or YAML.
You might have to use file locking if more than one client script might be started at the same location at the same time (and both need to access and change the same value)
|
|---|