New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perl -e '{ glob } ()' doesn't compile in /5.00563 (see Pod::Checker) #1120
Comments
From dcd@tc.fluke.comCreated by dcd@tc.fluke.comWhen attempting to install Pod::Checker under perl 5.00563 dd:dcd$ perl -e '{ glob } ()' It appears that my makefile defines PERL_EXTERNAL_GLOB, The following seems to work This led me to build the makefile using Perl Info
|
From [Unknown Contact. See original ticket]same problem occurs in v5.5.640 dd:dcd$ perl -e '{ glob } ()' It also doesn't occur in 5.004_03 On Wed, 2 Feb 2000, David Dyck wrote:
|
From @gsarOn Wed, 02 Feb 2000 17:48:02 PST, David Dyck wrote:
The glob() is not the issue here. C<{ use lib }> and suchlike have always Here's a fix. Sarathy Inline Patch-----------------------------------8<-----------------------------------
Change 5004 by gsar@auger on 2000/02/06 17:00:49
fix parse error on C<{ use strict }> and other constructs that
make the parser reenter while LEX_KNOWNEXT is active
Affected files ...
... //depot/perl/t/comp/use.t#7 edit
... //depot/perl/toke.c#191 edit
Differences ...
==== //depot/perl/t/comp/use.t#7 (xtext) ====
Index: perl/t/comp/use.t
--- perl/t/comp/use.t.~1~ Sun Feb 6 09:00:54 2000
+++ perl/t/comp/use.t Sun Feb 6 09:00:54 2000
@@ -44,9 +44,7 @@
print "ok ",$i++,"\n";
-
-use lib; # I know that this module will be there.
-
+{ use lib } # check that subparse saves pending tokens
local $lib::VERSION = 1.0;
==== //depot/perl/toke.c#191 (text) ====
Index: perl/toke.c
--- perl/toke.c.~1~ Sun Feb 6 09:00:54 2000
+++ perl/toke.c Sun Feb 6 09:00:54 2000
@@ -376,6 +376,15 @@
SAVEI32(PL_lex_state);
SAVEVPTR(PL_lex_inpat);
SAVEI32(PL_lex_inwhat);
+ if (PL_lex_state == LEX_KNOWNEXT) {
+ I32 toke = PL_nexttoke;
+ while (--toke >= 0) {
+ SAVEI32(PL_nexttype[toke]);
+ SAVEVPTR(PL_nextval[toke]);
+ }
+ SAVEI32(PL_nexttoke);
+ PL_nexttoke = 0;
+ }
SAVECOPLINE(PL_curcop);
SAVEPPTR(PL_bufptr);
SAVEPPTR(PL_bufend);
End of Patch. |
From @sciurius[Quoting Gurusamy Sarathy, on February 7 2000, 08:06, in "Re: [ID 20000202.014"]
Nevertheless, shouldn't "perldoc -f glob" mention that it uses -- Johan |
From @gsarOn Fri, 18 Feb 2000 13:57:55 +0100, Johan Vromans wrote:
Sure, patch welcome. Sarathy |
From @sciurius[Quoting Gurusamy Sarathy, on February 18 2000, 10:19, in "Re: [ID 20000202.014"]
*** perl5.5.650/pod/perlfunc.pod~ Mon Feb 7 08:04:17 2000 -- Johan |
Migrated from rt.perl.org#2078 (status was 'resolved')
Searchable as RT2078$
The text was updated successfully, but these errors were encountered: