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 :-)
In reply to Re: Re: tar sytem command
by grantm
in thread tar sytem command
by NodeReaper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |