diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-05-27 05:24:57 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-05-27 05:24:57 +0000 |
commit | 6628b3608b7c30da683c03d1c18d94706f991db5 (patch) | |
tree | dd264f20c26c7a3352eb11128b06fb368dbc1f9c /MDK/Common/File.pm | |
parent | 43750f2338ccfc28518234374c9a0e2af424eb61 (diff) | |
download | perl-MDK-Common-6628b3608b7c30da683c03d1c18d94706f991db5.tar perl-MDK-Common-6628b3608b7c30da683c03d1c18d94706f991db5.tar.gz perl-MDK-Common-6628b3608b7c30da683c03d1c18d94706f991db5.tar.bz2 perl-MDK-Common-6628b3608b7c30da683c03d1c18d94706f991db5.tar.xz perl-MDK-Common-6628b3608b7c30da683c03d1c18d94706f991db5.zip |
use "our" instead of "use vars"
Diffstat (limited to 'MDK/Common/File.pm')
-rw-r--r-- | MDK/Common/File.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MDK/Common/File.pm b/MDK/Common/File.pm index c4e1ad4..bb994fb 100644 --- a/MDK/Common/File.pm +++ b/MDK/Common/File.pm @@ -124,10 +124,10 @@ L<MDK::Common> =cut -use vars qw(@ISA %EXPORT_TAGS @EXPORT_OK); -@ISA = qw(Exporter); -@EXPORT_OK = qw(dirname basename cat_ cat_or_die cat__ output output_p output_with_perm append_to_file linkf symlinkf renamef mkdir_p rm_rf cp_f cp_af touch all all_files_rec glob_ substInFile expand_symlinks openFileMaybeCompressed catMaybeCompressed); -%EXPORT_TAGS = (all => [ @EXPORT_OK ]); +use Exporter; +our @ISA = qw(Exporter); +our @EXPORT_OK = qw(dirname basename cat_ cat_or_die cat__ output output_p output_with_perm append_to_file linkf symlinkf renamef mkdir_p rm_rf cp_f cp_af touch all all_files_rec glob_ substInFile expand_symlinks openFileMaybeCompressed catMaybeCompressed); +our %EXPORT_TAGS = (all => [ @EXPORT_OK ]); sub dirname { local $_ = shift; s|[^/]*/*\s*$||; s|(.)/*$|$1|; $_ || '.' } sub basename { local $_ = shift; s|/*\s*$||; s|.*/||; $_ } |