in reply to Style question: regex versus string builtin function

If $DELIMITER was static and was being tested for more than once in the code I might consider making a compiled regex.

my $rxDELIMITER = qr{\Q$DELIMITER\E}; ... if ( $line =~ $rxDELIMITER ) { ...

I probably reach for regexen too quickly without even considering the use of index. I suspect I'm not the only one with a bit of a blind spot there.

Cheers,

JohnGG