Permalink
Browse files

update vim templates

use Moose in modules, done_testing() in tests
  • Loading branch information...
1 parent 2375a26 commit 0d61fc7f1038db9fb3d5e4066fce506fd3b50cb7 @berekuk committed Nov 3, 2011
Showing with 8 additions and 6 deletions.
  1. +8 −6 vim/bundle/perl-support/perl-support/templates/comments.template
View
14 vim/bundle/perl-support/perl-support/templates/comments.template
@@ -32,7 +32,7 @@
#===============================================================================
§%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
== comment.file-description-pl == start ==
-#!/usr/bin/perl
+#!/usr/bin/env perl
use strict;
use warnings;
@@ -43,22 +43,24 @@ use warnings;
== comment.file-description-pm == start ==
package <CURSOR>;
-use strict;
-use warnings;
+use namespace::autoclean;
+use Moose;
-1;
+
+__PACKAGE__->meta->make_immutable;
§%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
== comment.file-description-t == start ==
#!/usr/bin/perl
use strict;
use warnings;
-use Test::More tests => 1;
-
use lib 'lib';
+use Test::More;
+<CURSOR>
+done_testing;
§%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
== comment.file-description-pod == start ==
#

0 comments on commit 0d61fc7

Please sign in to comment.