On 4/10/2004 12:56 PM, [EMAIL PROTECTED] wrote:

How can I split some path to directories

for example if my $path is "/home/ftp/some/file"

how can I get elements /home, than ftp, than some, and for last - file

I mean without split function, is there any other smarter way for doing
it. because if I have /home/ftp/some\/other dir/file
if I split it with "/" it won't return true directories.

Use the File::Spec module.




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to