1 use ExtUtils::MakeMaker;
2 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
3 # the contents of the Makefile that is written.
8 'Test::Simple' => 0.44,
11 'File::Basename' => 0.01,
12 'Spreadsheet::WriteExcel' => 0.42,
15 # The assumption is the 5.8.0 and greater doesn't need Unicode::String.
18 print "Do you want Unicode support? ";
20 my $need_unicode = $answer =~ /^[Yy]/;
25 $prereqs{'Unicode::String'} = '0.01';
30 use_unicode($use_unicode);
33 NAME => 'Excel::Template',
34 VERSION_FROM => 'lib/Excel/Template.pm', # finds $VERSION
35 AUTHOR => 'Rob Kinyon (rob.kinyon@gmail.com)',
36 ABSTRACT => 'Excel::Template',
37 PREREQ_PM => $prereqs,
42 my $using_unicode = shift;
46 qw( lib Excel Template ),
49 } ( [ qw( Element Cell.pm_ ) ], [ qw( TextObject.pm_ ) ] );
51 foreach my $filename (@filenames)
53 open(IN_FILE, $filename)
54 or die "Cannot open '$filename' for reading: $!\n";
55 my @lines = <IN_FILE>;
76 open(OUT_FILE, ">$filename")
77 or die "Cannot open '$filename' for writing: $!\n";
78 print OUT_FILE @lines;