> [- @field = split(".",$script) -]
Split interprets "." as regex, so you need to escape it, so better write
[- @field = split(/\./,$script) -]
Gerald
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mai
I have this code
Input is /something/something/index.html
[- $script = $ENV{SCRIPT_NAME} -]
[- @fields = split("/",$script) -]
[+ $fields[3] +]
[- $script = $fields[3] -]
[+ $script +]
Result is index.html
And now I need split index.html on index and html but code below dont
give me this res