in reply to Re: Whats the status of DBIx::Class
in thread Whats the status of DBIx::Class

> There has been much discussion about how this will be resolved

Is it possible to read the whole discussion in one page?

I'd be interested to know if %INC hooks were suggested as work around and mean to identify broken import statements.

Update

In hindsight, there is no use for this, if the break happens at compile time and something like use don't is simply rejected with a fatal error.

Anyway I couldn't find out since when this feature was deprecated, seems to be enforced without grace period.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

UPDATES

  • Comment on Re^2: Whats the status of DBIx::Class (Re^4: Whats the status of DBIx::Class (deprecated package separator / reading P5P)
  • Download Code

Replies are listed 'Best First'.
Re^3: Whats the status of DBIx::Class
by syphilis (Archbishop) on Aug 25, 2024 at 01:34 UTC
    Anyway I couldn't find out since when this feature was deprecated, seems to be enforced without grace period.

    I see the deprecation warning in 5.40.0 and 5.38.0 (but not 5.36.0 or earlier):
    D:\>perl -le "print $]; $don't = 1;" Old package separator "'" deprecated at -e line 1. 5.038000
    And, with warnings enabled:
    D:\>perl -wle "print $]; $don't = 1;" Old package separator "'" deprecated at -e line 1. Name "don::t" used only once: possible typo at -e line 1. 5.038000
    Cheers,
    Rob
      Thanks, I have a box with 5.38 and
      • use v5.36 was still emitting the warnings which couldn't be silenced
      • use v5.34 made it work like before
      so it seems the maintainers just need to introduce a use v5.34 or earlier (tho I couldn't test with v5.40)

      what I tried:

      $ cat t_package_sep.pl BEGIN { warn "Using Perl Version ", $], "\n";} use v5.34; no warnings 'deprecated::apostrophe_as_package_separator'; use diagnostics; use lib '.'; $don't = 1; use deprecated'apostrophe; $ cat deprecated/apostrophe.pm warn "Module ". __FILE__ ." loaded"; 1; $ perl t_package_sep.pl Using Perl Version 5.038002 Module deprecated/apostrophe.pm loaded at deprecated/apostrophe.pm lin +e 1.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      see Wikisyntax for the Monastery

      UPDATE
      hmm, strangely this is still producing the silenced warnings. Not sure if it's a bug or a documented feature regarding the deprecated:: category.

      use v5.34; use warnings; no warnings 'deprecated::apostrophe_as_package_separator';
      _
Re^3: Whats the status of DBIx::Class
by perlfan (Parson) on Aug 24, 2024 at 16:21 UTC
    There are some additional informed opinions here (reddit.com/r/perl)
      Thanks, but I was more interested in the deprecation of "'" than DBIc.

      I have an idea how to work around this, but clicking thru all P5P posts separately is a PITA.

      I really would appreciate having a whole thread view with all replies like in PM.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      see Wikisyntax for the Monastery

        You could join the list and then let Thunderbird assemble that threaded view for you :-)