#100 Stops parsing after Perl string operators

open
nobody
None
5
2012-09-14
2008-11-30
Arcnor
No

Natural Docs stops parsing the file after the first q() string, unless there is some explicit comment. Example:

my $var1;
my $text = q(
text
text
);

my $var2;
...

$var1 and $text gets parsed, but $var2 and the rest of the file (any variables or subs) don't.

Discussion

  • Greg Valure
    Greg Valure
    2008-11-30

    If I cut and paste that snippet into a .pl file I get all three variables. Are you using 1.4? If so the bug is more specific than just q() quotes and I'll need a better test case.

     
  • Sure!

    Yes, I'm using 1.4. Just try to parse "parser.pm" from here:

    http://github.com/Uiomae/rdbteach/tree/master

    ...but you'll need to remove the groups and the hand-made comments to get the errors.