version 1.3, 2005/05/26 14:31:28
|
version 1.5, 2005/09/20 17:24:57
|
Line 12 use vars qw(@ISA @EXPORT $VERSION
|
Line 12 use vars qw(@ISA @EXPORT $VERSION
|
$file_perm); |
$file_perm); |
use Exporter; |
use Exporter; |
|
|
$VERSION = 0.6; # ROC 26.5.2005 |
$VERSION = 0.6.1; # ROC 8.8.2005 |
|
|
@ISA = qw(Exporter); |
@ISA = qw(Exporter); |
|
|
Line 140 sub ymd_date {
|
Line 140 sub ymd_date {
|
# file name (the last path element) and path |
# file name (the last path element) and path |
# |
# |
sub split_file_path { |
sub split_file_path { |
my ($fn) = @_; |
my ($fn, $nodot) = @_; |
|
|
if ($fn =~ /^(.*)\/([^\/]+)$/) { |
if ($fn =~ /^(.*)\/([^\/]+)$/) { |
return ($2, $1); |
return ($2, $1); |
} |
} |
return $fn; |
# only file name |
|
if ($nodot) { |
|
return ($fn, ''); |
|
} else { |
|
return ($fn, '.'); |
|
} |
} |
} |
|
|
|
|