in reply to SelfChanging script!

my question now is that i want myscript to run by itself every hour. can this be done? is this possible?

Yes, this is possible. But it has nothing to do with Perl (at first glance anyway).

On *nix systems, this is a job for cron, look at  man cron

On Win32, Start -> Accessories -> System Tools -> Scheduled Tasks