ç¥èªè¨å®
.vimrc ã«ä¸è¨ã追å ã
iab papp <ESC>:r ~/.vim_templates/perl_application.pl<CR> iab ppkg <ESC>:r ~/.vim_templates/perl_package.pl<CR> iab pcls <ESC>:r ~/.vim_templates/perl_class.pl<CR> iab psub <ESC>:r ~/.vim_templates/perl_subroutine.pl<CR>
ãã³ãã¬ã¼ããã¡ã¤ã«ã¯ããããã»ã»ã»
perl_application.pl
#!/usr/bin/perl =head1 NAME <application name> - One-Line description =head1 VERSION =head1 USAGE =head1 DESCRIPTION =head1 BUGS AND LIMITATIONS =head1 SEE ALSO =head1 AUTHOR Author Name <E-Mail> =head1 COPYRIGHT Copyright (c) 2000-2006 XXXX Co.,Ltd. All rights reserved. =cut #============================================================================ # USE #============================================================================ use strict; use warnings; #============================================================================ # DEFINED #============================================================================ #============================================================================ # SUBROUTINES #============================================================================
perl_package.pl
package XXXX; =head1 NAME <package name> - One-Line description =head1 VERSION =head1 SYNOPSIS =head1 DESCRIPTION =head1 BUGS AND LIMITATIONS =head1 SEE ALSO =head1 AUTHOR Author Name <E-Mail> =head1 COPYRIGHT Copyright (c) 2000-2006 XXXX Co.,Ltd. All rights reserved. =cut #============================================================================ # USE #============================================================================ use strict; use warnings; #============================================================================ # DEFINED #============================================================================ #============================================================================ # SUBROUTINES #============================================================================ 1;
perl_class.pl
package XXXX; =head1 NAME <class name> - One-Line description =head1 VERSION =head1 SYNOPSIS =head1 DESCRIPTION =head1 BUGS AND LIMITATIONS =head1 SEE ALSO =head1 AUTHOR Author Name <E-Mail> =head1 COPYRIGHT Copyright (c) 2000-2006 XXXX Co.,Ltd. All rights reserved. =cut #============================================================================ # USE #============================================================================ use strict; use warnings; use Class::Std; #============================================================================ # CLASS #============================================================================ { #======================================================================== # ATTRIBUTES #======================================================================== #======================================================================== # METHODS #======================================================================== } 1;
perl_subroutine.pl
#---------------------------------------------------------------------------- # Name : name - One-Line description # Parameters : none # Returns : none # Throws : no exceptions # Comments : none # See Also : n/a #---------------------------------------------------------------------------- sub { my () = @_; }
ç¾å¨ãç§ããä¸è©±ã«ãªã£ã¦ããä¼ç¤¾ã§ã¯ãPODå½¢å¼ã®ããã¥ã¡ã³ããåãå ¥ãã¦ããããªãã£ãã®ã§ãPOD ã¨ãªãªã¸ãã«ã®ã³ã¡ã³ãã®æè¡·æ¡ãææ¡ä¸ããã£ã¦ãä¸è¨ã®ãããªãã³ãã¬ã¼ãã¨ãªã£ã¦ããã
å¾ã ãSubversion ã®ãªãã¸ããªã« commit ããéãTrac ã® Wiki ã« pod2text ã pod2html ã®åºåãåæ ãããäºå®ã