in reply to create an excel file

A little self-help on this question would have avoided at least one - -.

See: How do I post a question effectively?
      On asking for help

And if you haven't done so already, it would pay to read PerlMonks FAQ and The Perl Monks Guide to the Monastery.