summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-04-26 23:06:42 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-04-26 23:06:42 +0000
commitd84636903463cc2c7c724401d8214e94bb80a34c (patch)
treed0e9155a59c813571c286b2f6e00606b60c43967 /perl.c
parentba81b13cc37a74dbe945214bdfe29146d7aedf62 (diff)
parent75b44862ccfe91d9314cf0481cf385d225bfe78b (diff)
downloadperl-d84636903463cc2c7c724401d8214e94bb80a34c.tar.gz
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@5953
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 387b4ddb6c..e7a9bc27a9 100644
--- a/perl.c
+++ b/perl.c
@@ -2135,6 +2135,8 @@ Perl_moreswitches(pTHX_ char *s)
sv_catpv( sv, " ()");
}
} else {
+ if (s == start)
+ Perl_croak(aTHX_ "Module name required with -M option");
sv_catpvn(sv, start, s-start);
sv_catpv(sv, " split(/,/,q{");
sv_catpv(sv, ++s);