Skip to content

Instantly share code, notes, and snippets.

@dagolden
Created May 6, 2009 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dagolden/107326 to your computer and use it in GitHub Desktop.
Save dagolden/107326 to your computer and use it in GitHub Desktop.
@@ -6,6 +6,5 @@ use File::Spec;
$List::Util::TESTING_PERL_ONLY = $List::Util::TESTING_PERL_ONLY = 1;
(my $f = __FILE__) =~ s/p_//;
-my $filename = File::Spec->catfile(".", $f);
-$filename =~ s{/}{\\} if $^O eq 'Win32';
+my $filename = File::Spec->rel2abs(File::Spec->catfile(".", $f));
do $filename; die $@ if $@;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment