in reply to 2 scripts talking to each other
Take a look at the IPC::Shareable module. You can use it to create a variable in each script which can be shared. So, your first script can make it something the second will recognize as having new data in your text file.
Cheers,
KM
In Section
Seekers of Perl Wisdom