diff options
author | Jim Cromie <jcromie@cpan.org> | 2007-09-12 05:25:08 -0600 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-09-17 11:49:04 +0000 |
commit | d1594dd030daae8de2eb6f816e957dfd814508ae (patch) | |
tree | 10206c994f836c90ee3f5dbb8dc4043c075c49d9 /embed.pl | |
parent | 3fa779abd4d5a443708a30f61ef389c19295ec35 (diff) | |
download | perl-d1594dd030daae8de2eb6f816e957dfd814508ae.tar.gz |
[ patch ] add line-number to embed.pl warnings
Message-ID: <46E820F4.80106@gmail.com>
p4raw-id: //depot/perl@31884
Diffstat (limited to 'embed.pl')
-rwxr-xr-x | embed.pl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -312,7 +312,7 @@ sub readsyms (\%$) { s/[ \t]*#.*//; # Delete comments. if (/^\s*(\S+)\s*$/) { my $sym = $1; - warn "duplicate symbol $sym while processing $file\n" + warn "duplicate symbol $sym while processing $file line $.\n" if exists $$syms{$sym}; $$syms{$sym} = 1; } @@ -333,7 +333,7 @@ sub readvars(\%$$@) { if (/PERLVARA?I?S?C?\($pre(\w+)/) { my $sym = $1; $sym = $pre . $sym if $keep_pre; - warn "duplicate symbol $sym while processing $file\n" + warn "duplicate symbol $sym while processing $file line $.\n" if exists $$syms{$sym}; $$syms{$sym} = $pre || 1; } |