Brought all packages under eye of strict, warnings and love of Carp, For
[sdlgit/SDL_perl.git] / Build.PL
index 8d89fd9..6bed354 100644 (file)
--- a/Build.PL
+++ b/Build.PL
@@ -5,18 +5,20 @@
 # Copyright (C) 2009 Kartik Thakore
 
 use strict;
-
+use warnings;
+use Carp;
 use lib  'make/lib';
 
 use SDL::Build;
 use YAML;
+use YAML::Node;
 
 my $sdl_compile_flags = `sdl-config --cflags`;
 my $sdl_link_flags    = `sdl-config --libs`;
 
 if ($? >> 8)
 {
-       die "SDL doesn't appear to be installed.\n" .
+       croak "SDL doesn't appear to be installed.\n" .
                "Please check that sdl-config is in your path and try again.\n";
 }