summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2008-06-14 20:48:34 +0000
committerrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2008-06-14 20:48:34 +0000
commitd18e773aef5058210633f2b99715aca5825840d8 (patch)
treec1daf1bf1731eb7d9971f45694c17e67bf98b42b /bin
parenta04a204b963bf8dbf7bd385c07c59df40f57fedf (diff)
Panic if a routine is defined more than once.
git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@26 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'bin')
-rwxr-xr-xbin/perload2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/perload b/bin/perload
index e71cbdd..a0ed31c 100755
--- a/bin/perload
+++ b/bin/perload
@@ -117,6 +117,8 @@ while (<>) {
$fn_package = $current_package;
$fn_basename = $function;
}
+ die "line $.: duplicate routine ${fn_package}::$fn_basename\n"
+ if $Seen{"${fn_package}::$fn_basename"}++;
# Keep leading function comment
foreach (@Comment) {
push(@Data, $_) unless $autoload;