All perl scripts I have written will only print information if the user clicks a button which runs a script. Therefore the only way to refresh the information is to click refresh, or include an annoying META REFRESH tag to refresh the page every few seconds. For example if I was to create a chatroom then to check if users had written new messages, I would have to refresh the page. Basically im asking if theres a way to update a perl page without refreshing (automatic). This is because I want to display a live clock. I have a feeling that there maybe a system time function to do this, or a module. However, if there is I would still be interested to know if you have any ideas because I want to create a chatroom too.
So two questions really:
1: How can I display the live time (counts every second without having to refresh the page).
2: How can I refresh a perl script every second without using refresh.
Thanks alot, you guys are a big big help
So two questions really:
1: How can I display the live time (counts every second without having to refresh the page).
2: How can I refresh a perl script every second without using refresh.
Thanks alot, you guys are a big big help