http://qs1969.pair.com?node_id=748147


in reply to Pel script within perl script

Instead of using module you can use sleep function like in the below code.

a.pl ----- use strict; use warnings; print "hello\n"; b.pl ---- use strict; use warnings; while(1) { system("perl ./a.pl"); sleep(1) }

Each and every 1 second a.pl code will get call. We can also use alarm signal for achieve this. After alarm signal is occur we can call the appropriate perl script. Then we can re-assign the alarm.