RE: Problem with split function

2004-07-28 Thread Gerald Richter
> [- @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

Problem with split function

2004-07-28 Thread Wampa (Patrik Ružič)
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