Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 92bc073bc9a047f98617debe82598b572f4f456c
      
https://github.com/Perl/perl5/commit/92bc073bc9a047f98617debe82598b572f4f456c
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2024-09-03 (Tue, 03 Sep 2024)

  Changed paths:
    M op.c

  Log Message:
  -----------
  open: allow bareword args for all dup modes

Previously, only ">&" used to exempt the third open argument from
"strict subs":

    use strict;
    open my $fh1, ">&", STDOUT;   # bareword allowed
    open my $fh2, ">>&", STDOUT;  # error: Bareword "STDOUT" not allowed

Now all dup modes (>&, >>&, <&, +>&, +>>&, +<&) allow bareword
filehandles.

Fixes #22464.


  Commit: da66962fea3aee0a55a95a9033cc1ad6728ff523
      
https://github.com/Perl/perl5/commit/da66962fea3aee0a55a95a9033cc1ad6728ff523
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2024-09-03 (Tue, 03 Sep 2024)

  Changed paths:
    M t/io/open.t

  Log Message:
  -----------
  test dup open with barewords more exhaustively

Previously, only ">&" was tested (and other modes didn't work).

Now all 6 dup modes are tested (and 6 non-dup modes to verify that
barewords are still disallowed otherwise).


Compare: https://github.com/Perl/perl5/compare/bdafeebb08ac...da66962fea3a

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to