diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-01-08 21:20:26 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-01-08 21:20:26 +0000 |
commit | e81465beff59e6c9907613fe00ebce59d81fb1e8 (patch) | |
tree | 4c6010205cc62e3f79dff3aa7dc7ac005ccccab8 /t/uni | |
parent | 3236f110cb098d9081961e6c9f4585ecaf729cc5 (diff) | |
download | perl-e81465beff59e6c9907613fe00ebce59d81fb1e8.tar.gz |
do $file; won't propagate errors from die, as do is an implicit eval.
So need to propagate errors with $@.
p4raw-id: //depot/perl@29723
Diffstat (limited to 't/uni')
-rw-r--r-- | t/uni/case.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/uni/case.pl b/t/uni/case.pl index e27771b192..9d142ed685 100644 --- a/t/uni/case.pl +++ b/t/uni/case.pl @@ -23,7 +23,7 @@ sub casetest { my $file = File::Spec->catfile(File::Spec->catdir(File::Spec->updir, "lib", "unicore", "To"), "$base.pl"); - my $simple = do $file; + my $simple = do $file or die $@; my %simple; for my $i (split(/\n/, $simple)) { my ($k, $v) = split(' ', $i); |