Hi,
How to split this string:
I wanted the filename and directory path in two different variables.
I tried this, but it doesn't work
My output is:
Filename : C:WM603PUBLICst dlib.h
Directory : ./
Any help is appreciated
Thanks,
Ravi
How to split this string:
I wanted the filename and directory path in two different variables.
I tried this, but it doesn't work
Code:
my($filename, $directories, $suffix) = fileparse("C:\WM603\PUBLIC\stdlib.h");
print "<br>Filename : " . $filename . "\n";
print "<br>Directory : " . $directories . "\n<br><br><br>";
My output is:
Filename : C:WM603PUBLICst dlib.h
Directory : ./
Any help is appreciated
Thanks,
Ravi
Comment