perl code problem

coolzone

新手上路
注册
2003-08-12
消息
246
荣誉分数
0
声望点数
0
we have following perl code, which worked well before we update the windows 2000, but now it does not work after updating win2000. It shows a "invalid syntax error". Any comment?
Original code is follwoing:

#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
%in=&getcgivars;
if (-d "/users/webSite/clients/$in{'UserName'}") {
print "********>window.location='http://$in{'UserName'}:$in{'Password'}\@www.blues.ca/clients/$in{'UserName'}/index.html'**********>";
}
else {
print "********>window.location='http://www.blues.ca/nouser.html'**********>";
}
 
********> should be < script> or </ script>
 
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
%in=&getcgivars;
if (-d "/users/webSite/clients/".$in{'UserName'}) {
print <<OUTPUT;
<********>
window.location='http://$in{'UserName'}:$in{'Password'}@www.blues.ca/clients/$in{'UserName'}/index.html';
</********>
OUTPUT
}
else {
print <<OUTPUT;
<********>
window.location='http://www.blues.ca/nouser.html';
</********>
OUTPUT
}
 
后退
顶部