I have lots of perl scripts on my OpenWrt box (yes, I’m old), and I’ve just upgraded to 24.10 to find that the perl 5.40 package for 24.10 is subtly broken.
When a compilation error occurs the line number in the error message is always a % character instead of the actual line number, for example:
Missing right curly or square bracket at test.pl line %, at end of line
Obviously this makes writing and debugging perl scripts on the router pretty tiresome…
Downgrading to 5.28 might be an option for some, but that gets tricky when you’re using lots of additional perl packages because 5.28 will look for its dependencies in the wrong place (/usr/lib/perl5/5.28 instead of /usr/lib/perl5/5.40). I could uninstall all the dependencies and grab the 5.28 packages for those as well, but it starts to feel like I’m going down a rabbit hole and creating horrible maintenance problems for upgrading etc.
The issue was reported back in February but it hasn’t received much attention:
Also reported here:
Is there any way to ask someone nicely to take a look at this?
I don't think it does. I haven't tested personally but in the second link in my original post the reporter says they don't see the problem with Perl v5.40 on Gentoo Linux.