Config::General::NameBlock
DownloadFilesmemberszhanying由于Config::General模块本身缺乏对NameBlock方式的处理能力,所以决定自己进行扩展,主要是完善了对NameBlock方式的处理。------------------------------------test.pl use Config::General::NameBlock; my ={ default=>{ host=>[‘127.0.0.1‘,‘210.76.63.134‘], port=>[‘8090‘,‘7080‘], root=>‘homewebhtml‘, vlocal=>{ "cgi-bin"=>{ local=>‘homewebcgi-bin‘, mode=>‘read exec list‘, function=>‘‘ }, "images"=>{ local=>‘homewebimages‘, mode=>‘read list‘, function=>‘‘ } } } }; my =new Config::General::NameBlock(); ->set_block(‘vlocal‘); ->save_file( ‘test_1.conf‘);---------------------------------------------------test1.conf
host 127.0.0.1 host 210.76.63.134 port 8090 port 7080 root homewebhtml
function local homewebimages mode read list
function local homewebcgi-bin mode read exec list
...展开详情收缩
用户评论