You don't show what you have tried and how it failed.
In reply to Re: convert c# to perl code by marto in thread convert c# to perl code by ori smaug