in reply to Style question: regex versus string builtin function
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
|
|---|