Title: Regular expression question

I have a file such as:

My $file = "c:\temp\zips\ok.txt";

How can I split the $file to get the only path:

My $dir = "c:\temp\zips";
My $file = "ok.txt";

Thanks in advance!

Lucy

_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to