develooper Front page | perl.perl5.changes | Postings from June 2020

[Perl/perl5] 9f5427: Avoid uninitialized value warning

From:
James E Keenan
Date:
June 30, 2020 01:05
Subject:
[Perl/perl5] 9f5427: Avoid uninitialized value warning
Message ID:
Perl/perl5/push/refs/heads/core-p7-opbasic/000000-80672d@github.com
  Branch: refs/heads/core-p7-opbasic
  Home:   https://github.com/Perl/perl5
  Commit: 9f5427c4250117cd0e73ac9b186480644f1d60e0
      https://github.com/Perl/perl5/commit/9f5427c4250117cd0e73ac9b186480644f1d60e0
  Author: James E Keenan <jkeenan@cpan.org>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M t/opbasic/concat.t

  Log Message:
  -----------
  Avoid uninitialized value warning

Is this custom is() function, a string comparison between $got and
$expected assumes both are defined.  Make it so.


  Commit: 80672d83ba08d35f5a9617abef514561fd864b02
      https://github.com/Perl/perl5/commit/80672d83ba08d35f5a9617abef514561fd864b02
  Author: James E Keenan <jkeenan@cpan.org>
  Date:   2020-06-30 (Tue, 30 Jun 2020)

  Changed paths:
    M t/opbasic/qq.t

  Log Message:
  -----------
  Mark tests that warn

Ideally, rather than saying "no warnings 'digit'", we should capture the
warning and then test its content with a like() function.  But I haven't
yet figured out how to get $SIG{__WARN__} to work here.


Compare: https://github.com/Perl/perl5/compare/9f5427c42501%5E...80672d83ba08



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About