diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-28 05:03:53 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-28 05:03:53 +0000 |
commit | 003183f2462c206a39eddd45957c1a29fc593c37 (patch) | |
tree | 30712c740ce946aa8d4d128b23c4cfe953375d72 /pod/perlsyn.pod | |
parent | 8593bda5eaf2f40ae7a609c286d223c8f721fc0d (diff) | |
download | perl-003183f2462c206a39eddd45957c1a29fc593c37.tar.gz |
clarify gotcha with #line directives (from Rocco Caputo
<troc@netrus.net>)
p4raw-id: //depot/perl@6123
Diffstat (limited to 'pod/perlsyn.pod')
-rw-r--r-- | pod/perlsyn.pod | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod index dfded2ecde..a65b4cd263 100644 --- a/pod/perlsyn.pod +++ b/pod/perlsyn.pod @@ -598,6 +598,11 @@ C</^#\s*line\s+(\d+)\s*(?:\s"([^"]+)")?\s*$/> with C<$1> being the line number for the next line, and C<$2> being the optional filename (specified within quotes). +There is a fairly obvious gotcha included with the line directive: +Debuggers and profilers will only show the last source line to appear +at a particular line number in a given file. Care should be taken not +to cause line number collisions in code you'd like to debug later. + Here are some examples that you should be able to type into your command shell: |