bump copyright year to 2009
[gitmo/Class-MOP.git] / lib / Class / MOP / Method / Generated.pm
index 3466747..f3032da 100644 (file)
@@ -49,9 +49,7 @@ sub initialize_body {
 sub _eval_closure {
     # my ($self, $captures, $sub_body) = @_;
     my $__captures = $_[1];
-
-    local $@;
-    my $code = join(
+    eval join(
         "\n",
         (
             map {
@@ -67,11 +65,6 @@ sub _eval_closure {
         ),
         $_[2]
     );
-    my $sub = eval $code;
-
-    die "$@\n$code" if $@;
-
-    return $sub;
 }
 
 sub _add_line_directive {
@@ -156,7 +149,7 @@ Stevan Little E<lt>stevan@iinteractive.comE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright 2006-2008 by Infinity Interactive, Inc.
+Copyright 2006-2009 by Infinity Interactive, Inc.
 
 L<http://www.iinteractive.com>