in reply to Re: substr odd behavior with list arguments
in thread substr odd behavior with list arguments

well if he needs this more often in his code, he could also override° substr with use subs in order to work with other prototypes.

But I'd rather write a my_substr() sub to avoid confusion.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

update:

°) see https://perldoc.perl.org/perlsub#Overriding-Built-in-Functions