- 论坛徽章:
- 0
|
我在网上下载了某在线商店的源码,但是一开始就看不太明白,我太菜了!
--------------------------------------------------------------------------------------------
use FindBin qw($Bin);
use lib "$Bin/library";
use iLcatlib;
use strict;
use vars qw(%FORM %CON %COOKIE $LIB $sth $row @userdata);
#获得系统参数
tie %CON, 'IniFiles', ( -file => "$Bin/nkshop.ini" );
#构造新对象
$LIB=iLcatlib->new(ttmlpath=>"$CON{path}{ttmlpath}");
---------------------------------------------------------------------------------------------------
中的"use vars qw(%FORM %CON %COOKIE $LIB $sth $row @userdata);"
和“
#获得系统参数
tie %CON, 'IniFiles', ( -file => "$Bin/nkshop.ini" );
#构造新对象
$LIB=iLcatlib->new(ttmlpath=>"$CON{path}{ttmlpath}");
”
构造新对象是怎么样构造的,有没有哪位朋友给一下这方面的详细解释。 |
|