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"
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
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
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