Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Pel script within perl script

by leslie (Pilgrim)
on Mar 04, 2009 at 13:43 UTC ( [id://748147]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://748147]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-25 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found