I have this code
Input is /something/something/index.html

[- $script = $ENV{SCRIPT_NAME} -]
[- @fields = split("/",$script) -]
[+ $fields[3] +]<br />
[- $script = $fields[3] -]
[+ $script +]<br />

Result is index.html
And now I need split index.html on index and html but code below dont give me this result.

[- @field = split(".",$script) -]
[+ @field +]
[+ $field[0] +]<br />
[+ $field[1] +]<br />
[+ $field[2] +]<br />

where is problem ???

Thanks
Patrik Ruzic




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to