in reply to Re: tar sytem command
in thread tar sytem command
I'd be inclined to use:
use File::Basename; my $archive = "/some/dir/archive.tar.gz"; my ($filename, $dir) = fileparse($archive);
Of course you could argue that it's fairly safe to assume a system that has 'tar' installed probably also uses '/' for a directory separator :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: tar sytem command
by tadman (Prior) on Oct 29, 2002 at 07:38 UTC | |
by grantm (Parson) on Oct 29, 2002 at 18:01 UTC |