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
Errors in preamble code report line 0 #13261
Comments
From @cpansproutShould this be saying line 0? $ PERL5DB='@_=~s/l//' perl -de0 Some errors do that (those that go through yyerror); others simply use $ PERL5DB='s/l/' perl -de0 $ PERL5DB=die perl -de0 Should yyerror suppress the line number if it is 0, the way mess_sv does? Flags: Site configuration information for perl 5.19.4: Configured by sprout at Mon Sep 9 00:16:24 PDT 2013. Summary of my perl5 (revision 5 version 19 subversion 4) configuration: @INC for perl 5.19.4: Environment for perl 5.19.4: |
From @nwc10On Sun, Sep 15, 2013 at 01:16:13PM -0700, Father Chrysostomos wrote:
I think so. I can't think of a reason why not. "line 0" isn't exactly helpful. Nicholas Clark |
The RT System itself - Status changed from 'new' to 'open' |
From @wolfsageOn Mon, Sep 16, 2013 at 9:56 AM, Nicholas Clark <nick@ccl4.org> wrote:
Actually, is there some way we could make this more helpful? $ export PERL5DB='s/l/' (a few hours and a few beers later) $ perl -de 'print "hi";' This error without any context is woefully unhelpful. I guess one -- Matthew Horsfall (alh) |
From @HugmeirOn Sun, Sep 15, 2013 at 5:16 PM, Father Chrysostomos <
How about making preamble code do this: #file preamble which would make these easier to spot? I've been bitten by the lack of an |
From @cpansproutOn Mon Sep 16 09:56:01 2013, Hugmeir wrote:
Or we could special-case line 0 to say ‘in preamble’, which sounds -- Father Chrysostomos |
From [Unknown Contact. See original ticket]On Mon Sep 16 09:56:01 2013, Hugmeir wrote:
Or we could special-case line 0 to say ‘in preamble’, which sounds -- Father Chrysostomos |
From @rjbs* Father Chrysostomos via RT <perlbug-comment@perl.org> [2013-09-16T12:59:00]
Yes, this would be good. -- |
From @cpansproutOn Mon Sep 16 15:42:03 2013, perl.p5p@rjbs.manxome.org wrote:
Simply tacking on ‘in preamble’ when the line number is 0 is not so helpful. My first attempt at this gives the following: $ ./perl -b That’s just weird. -- Father Chrysostomos |
From [Unknown Contact. See original ticket]On Mon Sep 16 15:42:03 2013, perl.p5p@rjbs.manxome.org wrote:
Simply tacking on ‘in preamble’ when the line number is 0 is not so helpful. My first attempt at this gives the following: $ ./perl -b That’s just weird. -- Father Chrysostomos |
Migrated from rt.perl.org#119805 (status was 'open')
Searchable as RT119805$
The text was updated successfully, but these errors were encountered: