Have you taken a look at Excel::Writer::XLSX to create XLSX files?
In reply to Re: create xlsx by Corion in thread create xlsx by gpremala