|
发表于 2003-5-31 00:02:49
|
显示全部楼层
我几乎所有的都成功了,但是我敲入http://219.242.117.253/lxr/http/source时,出现
#!/usr/bin/perl
# $Id: source,v 1.4 1998/05/14 11:59:22 argggh Exp $
# source -- Present sourcecode as html, complete with references
#
# Arne Georg Gleditsch <[email protected]>
# Per Kristian Gjermshus <[email protected]>
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
######################################################################
use lib 'lib/';
use SimpleParse;
use LXR::Common;
use LXR::Config;
sub descexpand {
my $templ = shift;
if ($index{$filename}) {
return(&expandtemplate($templ,
('desctext', sub {return($index{$filename})})
));
} else {
return('');
}
}
这样的东西,不知道问题处在什么地方? |
|