Perlプログラムに関する各種メモ書き:タグ「AutoLoader」での検索

モジュールの動的ロード ( Autoloader.pm の使い方 )

1.「.pm ファイルのルーチン記述前に下記3行を追加」

use AutoLoader 'AUTOLOAD';
1;
__END__

2.「コマンドラインから以下のコマンドを実行」

perl -e 'use AutoSplit; autosplit($ARGV[0], $ARGV[1], 0, 1, 1)' xxxxxxxxxx.pm auto

参考

http://www-06.ibm.com/jp/developerworks/linux/041119/j_l-optperl.html#IDAR0RUF

No.16
05/11 12:05

edit

AutoLoader