in reply to Getting the filename from full path name ?
use File::Basename; my $path = '/home/username/public_html/somepath/2004-04-14-0002136'; my $filename = basename($path); print $filename, "\n";
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Getting the filename from full path name ?
by demerphq (Chancellor) on Apr 15, 2004 at 12:41 UTC | |
by eserte (Deacon) on Apr 15, 2004 at 13:03 UTC | |
by demerphq (Chancellor) on Apr 15, 2004 at 13:20 UTC | |
by eserte (Deacon) on Apr 15, 2004 at 13:57 UTC | |
by demerphq (Chancellor) on Apr 15, 2004 at 15:46 UTC | |
| |
by halley (Prior) on Apr 15, 2004 at 14:32 UTC | |
by demerphq (Chancellor) on Apr 15, 2004 at 16:06 UTC | |
|
Re: Re: Getting the filename from full path name ?
by peterr (Scribe) on Apr 15, 2004 at 03:51 UTC |