[急,在线等] asp转perl问题,懂两种语言的朋友请进。
FMBen 2005-05-02 03:37:46 asp 代码,作用,分离原来的一段如
/index.html
/here.html
/myfile/1.html
这样的代码,我不会perl的数组控制,希望有朋友能帮忙,解决即结贴.
sourcecode = Split(wording, chr(13), -1, 1)
numberoffiles=UBound(sourcecode)+1
for i = 0 to UBound(sourcecode)
sourcecode(i) = replace (sourcecode(i),chr(10),"") 'delete the space in path
sourcecode(i) = replace (sourcecode(i),chr(13),"") 'delete the enter in path sourcecode(i) = trim(sourcecode(i))
' format the wording
temp=left(sourcecode(i),1)
if temp<>"/" then sourcecode(i)="/" & sourcecode(i)
sourcecode(i)=replace(sourcecode(i),"/","$",1,1,1)
sourcecode(i)=replace(sourcecode(i),"$content/","$")