Re: How to extract the path of the file name in perl

2006-03-28 Thread a b
wrote: > > > How to extract the path of the file name in perl > > > > say > > my $path="C:\Documents and Settings\anish\Desktop\Design > > Documen1.doc"; > > $path=~ m/([^\/\\]+)$/; > > $path= $1; > > print "The Path is : $path"

Re: How to extract the path of the file name in perl

2006-03-28 Thread Xavier Noria
On Mar 28, 2006, at 11:31, Anish Kumar K. wrote: How to extract the path of the file name in perl say my $path="C:\Documents and Settings\anish\Desktop\Design Documen1.doc"; $path=~ m/([^\/\\]+)$/; $path= $1; print "The Path is : $path"; Have a look at the standard m

Re: How to extract the path of the file name in perl

2006-03-28 Thread Wijaya Edward
Hi, > How to extract the path of the file name in perl use File::Basename especially the method: fileparse() Do: perldoc File::Basename Regards, Edward WIJAYA --- I²R Disclaimer -- This email is confidential

How to extract the path of the file name in perl

2006-03-28 Thread Anish Kumar K.
Hi How to extract the path of the file name in perl say my $path="C:\Documents and Settings\anish\Desktop\Design Documen1.doc"; $path=~ m/([^\/\\]+)$/; $path= $1; print "The Path is : $path"; I am getting the value as .doc... I tried some combination. Can any one he