in reply to having no result

If you expect people to debug this for you at least provide the input required for it to run, see How do I post a question effectively?. Since you're new to Perl I suggest you read: