in reply to How do I make this?

To augment repellent's reply a little:

Is it too hard for a beginner?

Yes! But you needn't stay a beginner forever. repellent gave you some excellent links for learning Perl, but don't expect to solve this particular problem overnight.

However, if you make a start toward writing a script for this you can always come back to us and ask for help in making it work.

True laziness is hard work