in reply to SUBSTR OR REGEX: WHICH WILL YOU FAVOUR?
Then, I was told NO, please can you use substr function?
I think that the person who told this was wrong
I don't think it's a case when performance matters. You are working with $ARGV, which means it's something done once in the beginning of program
I assume maintainbility and readability is more important here, than tiny performance improvements.
And Perl program written in "C" style (with substr() and index() everywhere) isn't considered readable