Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

comment on

( [id://3333] : superdoc . print w/replies, xml ) Need Help??
I have to ask, is it really worth breaking backwards compatibility, that is, forcing an upgrade to a newer version of Perl, by adding this "feature"?

From whose perspective?

Using newer features of any version of Perl in a CPAN module means that some people won't be able to use them until they upgrade. The flip side is that some of these newer features make developing and maintaining code easier.

Volunteers are free to set that trade-off wherever they choose. The line may change over time. Even the Perl module toolchain now only targets v5.8.1, whereas it used to target v5.6 and before that v5.5.

This particular auto-dereference feature is experimental. By definition, that's the sort of thing that using in a library will reduce the number of people who try it. (It may be superseded by more recent p5p discussions about a "postfix dereference" operator. Who knows? That's why we have experiments.)

But compare that to the new s///r feature. That's something that I welcome. For some code I publish, I choose to make v5.14 a minimum because I like coding with that more than I care to support ancient perls. For other libraries, I make a different choice.

But I wouldn't hesitate to make v5.10 a minimum for just about anything general purpose these days. As others make that same decision, the days will be numbered for staying on v5.8.X and expecting the newest CPAN modules to just work.


Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

In reply to Re: Is auto-dereferencing worth forcing upgrades to newer versions of Perl? by xdg
in thread Is auto-dereferencing worth forcing upgrades to newer versions of Perl? by boftx

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.