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
CHECK routine called after syntax error #2129
Comments
From mjtg@cus.cam.ac.ukPlaying around with one of Barrie Slaymaker's bits of code, I tried perl5.6.0 -w -MO=Deparse -e '@x = grep (substr( $_, 0, 5 ) eq "fooba"), @bar' and got Not enough arguments for grep at -e line 1, near ""fooba")" The syntax error is of course correct (though it makes me wonder if the But the rest of the junk suggests that perhaps CHECK routines shouldn't Mike Guy % perl5.6.0 -V Characteristics of this binary (from libperl): |
From [Unknown Contact. See original ticket]"M.J.T. Guy" wrote:
I trip over that, too.
Not sure if this is related, but the CHECK bit rang a bell. [barries@jester /tmp]$ perl -w -MO=Deparse -MBenchmark -e 1 - Barrie |
From [Unknown Contact. See original ticket]Barrie Slaymaker (lists.p5p):
Fixed in cfgperl.
Not fixed in cfgperl. |
From [Unknown Contact. See original ticket]Barrie Slaymaker <barries@slaysys.com> wrote
That's mended in perl-current, so is a different problem from my example. Tho' I note in passing that it deparses the whole of Benchmark.pm, Mike Guy |
From @smpeters
This appears to have been fixed at some point in the past.
|
@smpeters - Status changed from 'open' to 'resolved' |
From mjtg@cam.ac.uk"Steve Peters wrote
It's been changed, but it hasn't been fixed - where do you think that This bug should be re-opened. Mike Guy |
@smpeters - Status changed from 'resolved' to 'open' |
From @smpeters
I attemted to reattempt to recreate the problem and found that it only bash-2.05b$ perl -d -MO=Deparse -e'grep ' Loading DB routines from perl5db.pl version 1.27 Enter h or `h h' for help, or `man perldebug' for more help. Not enough arguments for grep at -e line 1, at EOF Loading DB routines from perl5db.pl version 1.27 Enter h or `h h' for help, or `man perldebug' for more help. Not enough arguments for map at -e line 1, at EOF |
From @smpeters
The error was caused by pp_grepstart() and pp_mapstart() not being The patch was built from blead-23523. All tests were successful. It also behaves as other built-in functions do.
Loading DB routines from perl5db.pl version 1.28 Enter h or `h h' for help, or `man perldebug' for more help. Not enough arguments for rindex at -e line 1, at EOF
Loading DB routines from perl5db.pl version 1.28 Enter h or `h h' for help, or `man perldebug' for more help. Not enough arguments for grep at -e line 1, at EOF |
From @smpetersB_Deparse_grepstart.patch--- ext/B/B/Deparse.pm.orig Mon Nov 22 15:10:30 2004
+++ ext/B/B/Deparse.pm Mon Nov 22 15:12:35 2004
@@ -2366,6 +2366,8 @@
sub pp_mapwhile { mapop(@_, "map") }
sub pp_grepwhile { mapop(@_, "grep") }
+sub pp_mapstart { baseop(@_, "map") }
+sub pp_grepstart { baseop(@_, "grep") }
sub pp_list {
my $self = shift;
|
From @rgsSteve Peters via RT wrote:
Thanks, applied as #23526. |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#3422 (status was 'resolved')
Searchable as RT3422$
The text was updated successfully, but these errors were encountered: