This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
#line directives without a filename leave the file name as it was
authorGurusamy Sarathy <gsar@cpan.org>
Sat, 22 Jan 2000 10:37:16 +0000 (10:37 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Sat, 22 Jan 2000 10:37:16 +0000 (10:37 +0000)
instead of setting it to the script name (from Andrew Pimlott
<andrew@pimlott.ne.mediaone.net>)

p4raw-id: //depot/perl@4837

toke.c

diff --git a/toke.c b/toke.c
index f2e01d6..e2e10f2 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -495,8 +495,6 @@ S_incline(pTHX_ char *s)
     *t = '\0';
     if (t - s > 0)
        CopFILE_set(PL_curcop, s);
-    else
-       CopFILE_set(PL_curcop, PL_origfilename);
     *t = ch;
     CopLINE_set(PL_curcop, atoi(n)-1);
 }