projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
2da760c
)
Localize $@ and $! before loading a file in SWASHNEW
Rafael Garcia-Suarez [Wed, 16 Sep 2009 07:43:51 +0000 (09:43 +0200)]
This fixes a bug where a spurious error was reported from utf8_heavy.
This been found by Salvador Ortiz Garcia who suggested to localize $@;
I merely added $!.
lib/utf8_heavy.pl
patch
|
blob
|
blame
|
history
diff --git
a/lib/utf8_heavy.pl
b/lib/utf8_heavy.pl
index
ecdd95e
..
41a0662
100644
(file)
--- a/
lib/utf8_heavy.pl
+++ b/
lib/utf8_heavy.pl
@@
-197,6
+197,8
@@
sub SWASHNEW {
return $found;
}
+ local $@;
+ local $!;
$list = do $file; die $@ if $@;
}