Skip to content
Browse files

Modify template of perl package

  • Loading branch information...
1 parent db6ffbd commit 260a1b47ed8b3484f5e8b3321a43bdb4588f8cc2 @kmnk committed Sep 18, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 vim/dot.vim/templates/perl/base-package.pl
View
8 vim/dot.vim/templates/perl/base-package.pl
@@ -1,4 +1,4 @@
-package {{_expr_:substitute(substitute(expand('%:r'), '.*lib[\\/]', '', 'g'), '[\\/]', '::', 'g')}};
+package {{_expr_:substitute(substitute(expand('%:r'), '.*lib[/]', '', 'g'), '[/]', '::', 'g')}};
use strict;
use warnings;
@@ -11,19 +11,19 @@ package {{_expr_:substitute(substitute(expand('%:r'), '.*lib[\\/]', '', 'g'), '[
=head1 NAME
-{{_expr_:substitute(substitute(expand('%:r'), '.*lib[\\/]', '', 'g'), '[\\/]', '::', 'g')}} -
+{{_expr_:substitute(substitute(expand('%:r'), '.*lib[/]', '', 'g'), '[/]', '::', 'g')}} -
=head1 VERSION
最初のテンプレートには、通常は以下が含まれる:
-This documentation refers to {{_expr_:substitute(substitute(expand('%:r'), '.*lib[\\/]', '', 'g'), '[\\/]', '::', 'g')}} version 0.0.1
+This documentation refers to {{_expr_:substitute(substitute(expand('%:r'), '.*lib[/]', '', 'g'), '[/]', '::', 'g')}} version 0.0.1
=head1 SYNOPSIS
- use {{_expr_:substitute(substitute(expand('%:r'), '.*lib[\\/]', '', 'g'), '[\\/]', '::', 'g')}};
+ use {{_expr_:substitute(substitute(expand('%:r'), '.*lib[/]', '', 'g'), '[/]', '::', 'g')}};
# 最も一般的な使用法を示すため、簡単なサンプルコードを示す

0 comments on commit 260a1b4

Please sign in to comment.
Something went wrong with that request. Please try again.