Open p5pRT opened 8 years ago
For next code
sub file { my $filename = shift // $DB::file;
return ${ "::_\<$filename" }; }
sub DB { ( $DB::package\, $DB::file\, $DB::line ) = caller(1);
die ">$DB::file\< ne >" .file( $DB::file ) ."\<" if $DB::file ne file( $DB::file ); }
I get the error: # main::__ANON__[(eval 371):1]('>/home/feelsafe/public_html/lib/Log/Log4perl/Appender.pm\< ne >/home/fe # elsafe/public_html/lib/Log/Log4perl/Appender.pm\< at /home/feelsafe/tmp/perl_libs/lib/Devel/DebugHook # s.pmTue Jan 12 15:10:29 2016 - [uwsgi-perl error] >/home/feelsafe/public_html/lib/Log/Log4perl/Appen # der.pm\< ne >/home/feelsafe/public_html/lib/Log/Log4perl/Appender.pm\< at /home/feelsafe/tmp/perl_libs # /lib/Devel/DebugHooks.pm line 658\, \ line 46. #
Lines visually are equal:
/home/feelsafe/public_html/lib/Log/Log4perl/Appender.pm\< /home/feelsafe/public_html/lib/Log/Log4perl/Appender.pm\<
because values exists by that key in ${ "::_\<filename" } I do not expect this assert
On Tue Jan 12 08:40:33 2016\, kes-kes@yandex.ru wrote:
From: kes-kes@yandex.ru Subject: unexpected die To: perlbug@perl.org Cc: kes-kes@yandex.ru Message-Id: \5\.22\.0\_13274\_1452614980@​keswork Reply-To: kes-kes@yandex.ru
This is a bug report for perl from kes-kes@yandex.ru\, generated with the help of perlbug 1.40 running under perl 5.22.0.
----------------------------------------------------------------- [Please describe your issue here]
For next code
sub file { my $filename = shift // $DB::file;
return ${ "::_\<$filename" }; }
sub DB { ( $DB::package\, $DB::file\, $DB::line ) = caller(1);
die ">$DB::file\< ne >" .file( $DB::file ) ."\<" if $DB::file ne file( $DB::file ); }
I get the error: # main::__ANON__[(eval 371):1]('>/home/feelsafe/public_html/lib/Log/Log4perl/Appender.pm\< ne
/home/fe # elsafe/public_html/lib/Log/Log4perl/Appender.pm\< at /home/feelsafe/tmp/perl_libs/lib/Devel/DebugHook # s.pmTue Jan 12 15:10:29 2016 - [uwsgi-perl error] /home/feelsafe/public_html/lib/Log/Log4perl/Appen # der.pm\< ne >/home/feelsafe/public_html/lib/Log/Log4perl/Appender.pm\< at /home/feelsafe/tmp/perl_libs # /lib/Devel/DebugHooks.pm line 658\, \ line 46. #
Lines visually are equal:
/home/feelsafe/public_html/lib/Log/Log4perl/Appender.pm\< /home/feelsafe/public_html/lib/Log/Log4perl/Appender.pm\<
because values exists by that key in ${ "::_\<filename" } I do not expect this assert
Could you clarify how you are calling this code and getting an unexpected error?
Thank you very much.
-- James E Keenan (jkeenan@cpan.org)
The RT System itself - Status changed from 'new' to 'open'
Здравствуйте\, James.
Вы писали 12 января 2016 г.\, 21:29:50:
JEKvR> On Tue Jan 12 08:40:33 2016\, kes-kes@yandex.ru wrote:
From: kes-kes@yandex.ru Subject: unexpected die To: perlbug@perl.org Cc: kes-kes@yandex.ru Message-Id: \5\.22\.0\_13274\_1452614980@​keswork Reply-To: kes-kes@yandex.ru
This is a bug report for perl from kes-kes@yandex.ru\, generated with the help of perlbug 1.40 running under perl 5.22.0.
----------------------------------------------------------------- [Please describe your issue here]
For next code
sub file { my $filename = shift // $DB::file;
return ${ "::_\<$filename" }; }
sub DB { ( $DB::package\, $DB::file\, $DB::line ) = caller(1);
die ">$DB::file\< ne >" .file( $DB::file ) ."\<" if $DB::file ne file( $DB::file ); }
I get the error: # main::__ANON__[(eval 371):1]('>/home/feelsafe/public_html/lib/Log/Log4perl/Appender.pm\< ne
/home/fe # elsafe/public_html/lib/Log/Log4perl/Appender.pm\< at /home/feelsafe/tmp/perl_libs/lib/Devel/DebugHook # s.pmTue Jan 12 15:10:29 2016 - [uwsgi-perl error] /home/feelsafe/public_html/lib/Log/Log4perl/Appen # der.pm\< ne >/home/feelsafe/public_html/lib/Log/Log4perl/Appender.pm\< at /home/feelsafe/tmp/perl_libs # /lib/Devel/DebugHooks.pm line 658\, \ line 46. #
Lines visually are equal:
/home/feelsafe/public_html/lib/Log/Log4perl/Appender.pm\< /home/feelsafe/public_html/lib/Log/Log4perl/Appender.pm\<
because values exists by that key in ${ "::_\<filename" } I do not expect this assert
JEKvR> Could you clarify how you are calling this code and getting an unexpected error?
JEKvR> Thank you very much.
$ cat Devel/DB.pm package DB; sub file { my $filename = shift // $DB::file;
return ${ "::_\<$filename" }; }
sub DB { ( $DB::package\, $DB::file\, $DB::line ) = caller(1);
die ">$DB::file\< ne >" .file( $DB::file ) ."\<" if $DB::file ne file( $DB::file ); } 1;
perl -d:DB script.pl
or for web application set this env PERL5OPT='d:DB' if this uwsgi you may add to the end of site.ini next: env = PERL5OPT='d:DB'
The application I have try was a HTML::Mason\, this is a complex app\, about 500modules are loaded...
-- С уважением\, Eugen mailto:kes-kes@yandex.ru
Migrated from rt.perl.org#127249 (status was 'open')
Searchable as RT127249$