2007-08-01から1ヶ月間の記事一覧

夏休みの宿題

AGORA Pop-up Goal 畳めん...

Module::Starter

Module::Starter $ module-starter --module=Hoge::Moge::Hage Perl Best Practices Module::Starter::PBP $ perl -MModule::Starter::PBP=setup$ find ~/.module-starter -type f /Users/oppara/.module-starter/PBP/Build.PL /Users/oppara/.module-starte…

XML::Parserのインストール

portでexpatを入れてるので、cpanだとこける。 $ perl Makefile.PL EXPATLIBPATH=/opt/local/lib EXPATINCPATH=/opt/local/include

LWP::SimpleでHEAD

use LWP::Simple; my $url = 'http://www.example.com/'; my ( $content_type, $document_length, $modified_time, $expires, $server ) = head( $url ); # or my $head = head( $url ); print $head->{_headers}->{etag}; print $head->{_headers}->{'last-…

vim-cocoaを試す

vim

Google Groups Google Code Archive - Long-term storage for Google Code Project Hosting. http://lapangan.net/darwinports/index.php?PrivatePortfile%2FVim Portfileの作者さんに感謝! $ cd /opt/local/var/db/dports/sources/private $ sudo rm -rf e…

.cvsignore を svn:ignore に

$ svn propset svn:ignore -F .cvsignore . ディレクトリも無視 % echo ディレクトリ名 > .cvsignore % echo もういいっちょディレクトリ名 >> .cvsignore % svn ps svn:ignore -F .cvsignore . % svn add .cvsignore % svn ci -m 'add .cvsignore add svn:i…

とりあえずバイナリ扱いにしとく

$ svn ps svn:mime-type application/octet-stream パス

MD5ハッシュを求める

cmd

$ echo -n 'pass' | md5

配列のシャッフル

$ perl -e 'use List::Util qw(shuffle);$,=",";print shuffle( 0..10 ),"?n";' 5,2,7,6,8,4,3,9,1,10,0, -Mでサブルーチンのエクスポート方法がわからん。