Re: How to get the file name from a path

2003-09-25 Thread David Storrs
On Thu, Sep 25, 2003 at 05:15:56PM +0300, Juris wrote: > On Thu, 25 Sep 2003 12:10:15 +0530, Chetak Sasalu M > <[EMAIL PROTECTED]> wrote: > > > > >Hi, > >How can I extract "filename" from /root/dir1/.../filename > $path_name='/root/dir1/.../filename'; > my $fname=substr($path, > rindex($path,"/

Re: How to get the file name from a path

2003-09-25 Thread Juris
On Thu, 25 Sep 2003 12:10:15 +0530, Chetak Sasalu M <[EMAIL PROTECTED]> wrote: Hi, How can I extract "filename" from /root/dir1/.../filename $path_name='/root/dir1/.../filename'; my $fname=substr($path, rindex($path,"/")+1,length($path)-rindex($path,"/")- 1); Cheers, Chetak. -- wbr, Juris -- To

Re: How to get the file name from a path

2003-09-24 Thread John W. Krahn
Chetak Sasalu M wrote: > > Hi, Hello, > How can I extract "filename" from /root/dir1/.../filename use File::Basename; my $filename = basename( $path ); John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to get the file name from a path

2003-09-24 Thread Chetak Sasalu M
Hi, How can I extract "filename" from /root/dir1/.../filename Cheers, Chetak. **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by th