#!/usr/bin/perl use strict; use warnings; use Excel::Writer::XLSX; # Create a new Excel workbook my $workbook = Excel::Writer::XLSX->new( 'perl.xlsx' ); # Add a worksheet my $worksheet = $workbook->add_worksheet(); # Write a formatted and unformatted string, row and column notation. $worksheet->write( 'C3', 'Hi Excel!'); $worksheet->write_comment( 'C3', 'Comment with Color', color => 'green' );