use ExtUtils::MakeMaker; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. open FILE,'./t/api.key'; my @lines = ; close FILE; my $default = $lines[0]; my $key; if ($default) { $key = prompt("Enter your PicApp API Key:",$default); } else { $key = prompt("Enter your PicApp API Key:"); open FILE,'>./t/api.key'; print FILE $key; close FILE; } unless ($key) { die "You must provide the system will an API Key"; } WriteMakefile( 'NAME' => 'Net::PicApp', 'VERSION_FROM' => 'lib/Net/PicApp.pm', 'ABSTRACT' => "A library for interfacing with the PicApp service.", 'AUTHOR' => 'Byrne Reese ', 'DISTNAME' => 'Net-PicApp', 'LICENSE' => 'perl', 'LIBS' => [''], # e.g., '-lm' 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' 'INC' => '', # e.g., '-I/usr/include/other' 'PREREQ_PM' => { # 'Test::Exception' => 0, # 'File::Which' => 0, # 'Class::Accessor' => 0, # 'XML::XPath' => 0, # 'Digest::SHA1' => 0, # 'MIME::Base64' => 0, # 'Crypt::OpenSSL::Bignum' => 0, # 'Crypt::OpenSSL::X509' => 0, # 'Crypt::OpenSSL::RSA' => 0, # 'Crypt::OpenSSL::DSA' => 0, # 'XML::CanonicalizeXML' => 0, }, ); __END__