diff -ruN not/notexist/lib/Tshare.pm not/Tshare/lib/Tshare.pm --- not/notexist/lib/Tshare.pm 1969-12-31 16:00:00.000000000 -0800 +++ not/Tshare/lib/Tshare.pm 2012-03-14 07:17:29.875000000 -0700 @@ -0,0 +1,8 @@ +package Tshare; +$Tshare::VERSION = 0.01; +use File::ShareDir ':ALL'; +my $dir = dist_dir('Tshare'); +chdir $dir; +print $dir,$/; +print $_,$/ for glob '*'; +1; diff -ruN not/notexist/Makefile.PL not/Tshare/Makefile.PL --- not/notexist/Makefile.PL 1969-12-31 16:00:00.000000000 -0800 +++ not/Tshare/Makefile.PL 2012-03-14 07:18:12.875000000 -0700 @@ -0,0 +1,12 @@ +#!/usr/bin/perl -- +use ExtUtils::MakeMaker; +use File::ShareDir::Install; +install_share; # default +#~ install_share 'share'; # same as default +#~ install_share 'dist', 'share'; # same as default +WriteMakefile( + NAME => 'Tshare', + VERSION_FROM => 'lib/Tshare.pm', # finds $VERSION +); +package MY; +use File::ShareDir::Install qw(postamble); diff -ruN not/notexist/share/file.txt not/Tshare/share/file.txt --- not/notexist/share/file.txt 1969-12-31 16:00:00.000000000 -0800 +++ not/Tshare/share/file.txt 2012-03-14 07:17:29.875000000 -0700 @@ -0,0 +1 @@ +ECHO is on.