Perl, I like you just the way you are. There's been some interesting features and fancy OO modules in the last ten years, but my code is still 5.6.0...
The list of changes from 5.6.0 to 5.8.0 (~ 2 years) are admittedly not that stellar, unless you're working with Unicode or multithreading.
However, between 5.8.0 to 5.10.0 (~ 5 years) there are many juicy bites that can improve your code in general if you're willing to reconsider. And I'm not talking about Moose/OO at all.
I have just re-read perl5100delta. I use // operator all the time; so I guess I was exaggerating a little. I was thinking about RT::Client::REST, which is now eight years old and should still run just fine using Perl 5.6.0.
I found named capture very useful several times. Some of the other changes are simply over my head. Did you have some specific features in mind when you said they'll make my code better?
Yup, those are the two biggies. Another one is state variables. Switch also simplifies conditionals if you have lots of them, but sadly this (and the related smartmatch operator) are being demoted to experimental status.
The list of changes from 5.6.0 to 5.8.0 (~ 2 years) are admittedly not that stellar, unless you're working with Unicode or multithreading.
However, between 5.8.0 to 5.10.0 (~ 5 years) there are many juicy bites that can improve your code in general if you're willing to reconsider. And I'm not talking about Moose/OO at all.
I have just re-read perl5100delta. I use // operator all the time; so I guess I was exaggerating a little. I was thinking about RT::Client::REST, which is now eight years old and should still run just fine using Perl 5.6.0.
I found named capture very useful several times. Some of the other changes are simply over my head. Did you have some specific features in mind when you said they'll make my code better?
Yup, those are the two biggies. Another one is state variables. Switch also simplifies conditionals if you have lots of them, but sadly this (and the related smartmatch operator) are being demoted to experimental status.
Also don't underestimate the considerable performance improvements and bug fixes that go on under the hood.