Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 82caf12953255346221f5bd2b01320b4 > files > 67

perl-Spreadsheet-WriteExcel-2.250.0-1mdv2010.0.noarch.rpm

#!/usr/bin/perl -w

###############################################################################
#
# This example demonstrates writing cell comments. A cell comment is indicated
# in Excel by a small red triangle in the upper right-hand corner of the cell.
#
# For more advanced comment options see comments2.pl.
#
# reverse('©'), November 2005, John McNamara, jmcnamara@cpan.org
#

use strict;
use Spreadsheet::WriteExcel;

my $workbook  = Spreadsheet::WriteExcel->new("comments1.xls");
my $worksheet = $workbook->add_worksheet();



$worksheet->write        ('A1', 'Hello'            );
$worksheet->write_comment('A1', 'This is a comment');