Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: How Perl revolve

by haukex (Bishop)
on Apr 12, 2021 at 05:53 UTC ( #11131122=note: print w/replies, xml ) Need Help??


in reply to Re: How Perl revolve
in thread How Perl revolve

I can't think of an example where an old function was deprecated, because that would cause old code to break. Do you have an example of this?

See perldeprecation, and though some of the features may seem obscure, I do believe that they caused some breakages. As I recall, P5P did proceed quite carefully for each of them, checking breakages on CPAN etc. Also, they've generally fallen into two categories: One, things that have been deprecated for ages (e.g. $* and $# are documented as "Deprecated in Perl 5. Removed in Perl v5.10.0.", but weren't fatal until 5.30), or two, changes to make room for new syntax in the future (e.g. the notes for "Some formerly deprecated uses of an unescaped left brace "{" in regular expression patterns are now illegal" in 5.30 state "... will enable the Perl language to be extended in various ways in future releases."). Update: I guess a third category would be experiments that were removed - perlexperiment.

Replies are listed 'Best First'.
Re^3: How Perl revolve
by talexb (Chancellor) on Apr 13, 2021 at 16:12 UTC

    Thanks for this .. yes, there have been a few quite minor features that were deprecated, but my reading of the original post talked about 'functions' that had been deprecated, and that made me think of actual keywords (like split, for example -- which has *not* been removed, obviously) that had been removed from the language, causing breakage.

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

      my reading of the original post talked about 'functions' that had been deprecated, and that made me think of actual keywords (like split, for example -- which has *not* been removed, obviously) that had been removed from the language, causing breakage.

      Yes, that's true, and a quick skim of the docs shows that might apply to Unqualified dump() and File::Glob::glob() will disappear (plus, it's not deprecated, but study hasn't had any use for a while now). I was looking at this from the angle of breakages, and I remember following some of the P5P threads when things were removed that caused breakages on CPAN. For modules that are high upstream on the CPAN River, patches were submitted, and for other packages, bugs were filed on RT.

          I was looking at this from the angle of breakages, and I remember following some of the P5P threads when things were removed that caused breakages on CPAN. For modules that are high upstream on the CPAN River, patches were submitted, and for other packages, bugs were filed on RT.

        Right -- all that to say, there have been some minor changes, but p5p have been quite good about testing and making fixes as they are required, in order that there's the least amount of surprise when the new version of Perl is released.

        Also -- funny you mentioned study, as I was going to use that as my example function, then decided it was a little too obscure, and replaced it with split. I'm aware of it, but never had a regex complex enough to wonder if study might have helped. Also, I'm the kind of person who actually does read every line of a thousand page reference book, even if I only end up using 20% of the material. And study was used in a piece of Perl poetry I read, and I thought it was a cool keyword.

        Alex / talexb / Toronto

        Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11131122]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2022-05-22 19:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (81 votes). Check out past polls.

    Notices?