|
|
|
|
|
by richard_todd
1514 days ago
|
|
Yeah, I agree with you. For fun I built Perl 1 a couple years ago and was amazed at how similar it was to Perl 5. In fact most of the test suite from Perl 1 runs unmodified on Perl 5. The subroutine calling syntax was different (it used `do xxx();` I think) so those tests fail. But unfortunately, some Perl devs in recent years keep thinking that what they need to do is break stuff to "modernize". They keep eyeing goals like turning `strict` on by default, and eliminating lesser-used features, which will surely break untold numbers of 20-year-old scripts. I think there is some low-level anxiety among some of their developers that interest in their language has basically evaporated and they keep reaching for a silver bullet that doesn't exist. I think they are crazy ("perl 7... now 10% more like python!") but it's open-source so in the worst case I'm sure someone will keep a traditional perl from bit-rotting. edit: I had made a short blog post about playing with perl 1: https://rwtodd.org/2020/Jun/building-perl-1 |
|
Not unless you declare a version. Old style perl will continue to work as before.
If you declare something like:
... then, and only then, you'll get strict/warnings/whatever turned on.Your 20 year old script can continue to run just fine.