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,
12 'File::Basename' => 0.01,
13 'Spreadsheet::WriteExcel' => 0.42,
16 # The assumption is the 5.8.0 and greater doesn't need Unicode::String.
19 print "Do you want Unicode support? ";
21 my $need_unicode = $answer =~ /^[Yy]/;
26 $prereqs{'Unicode::String'} = '0.01';
31 use_unicode($use_unicode);
34 NAME => 'Excel::Template',
35 VERSION_FROM => 'lib/Excel/Template.pm', # finds $VERSION
36 AUTHOR => 'Rob Kinyon (rob.kinyon@gmail.com)',
37 ABSTRACT => 'Excel::Template',
38 PREREQ_PM => $prereqs,
43 my $using_unicode = shift;
47 qw( lib Excel Template ),
50 } ( [ qw( Element Cell.pm_ ) ], [ qw( TextObject.pm_ ) ] );
52 foreach my $filename (@filenames)
54 open(IN_FILE, $filename)
55 or die "Cannot open '$filename' for reading: $!\n";
56 my @lines = <IN_FILE>;
77 open(OUT_FILE, ">$filename")
78 or die "Cannot open '$filename' for writing: $!\n";
79 print OUT_FILE @lines;