2009-12-01から1ヶ月間の記事一覧
postgresqlのversion % psql --version psql (PostgreSQL) 8.4.2 contains support for command-line editing perlプログラム 以下のperlプログラムからpostgresqlにアクセスしようとしたけど、 エラーが出てアクセスできなかった。 #!/opt/local/bin/perl u…
インストール % sudo port install vim プラグインとかを放り込む.vimディレクトリを作る % mkdir ~/.vim プラグインを導入していく その前にディレクトリを作る % mkdir ~/.vim/plugin minibufexpl minibufexpl.vim - Elegant buffer explorer - takes very…
Sites/index.cgi 1 #!/usr/bin/perl 2 3 use strict; 4 use warnings; 5 6 &main(); 7 exit; 8 9 sub main { 10 if ($ENV{'HTTP_COOKIE'}) { 11 if (&check_ck()) { &private_pg(); } 12 else { &basic_pg(-2); } 13 } 14 else { 15 if ($ENV{'REQUEST_METHO…
http://d.hatena.ne.jp/tokuhirom/20091207/1260156962 #!/usr/bin/perl use strict; use warnings; use Getopt::Long; use Pod::Usage; my $port = 8080; my $global_var = 1; # ここにグローバル変数を列挙する GetOptions( 'p|port=i' => \$port ) or pod…