3 ms·
Since I started writing Perl I absolutely started adding more comments. I make sure that I add a comment with sample input for my regexes, particularly if they'
by caw 14y ago
Since I started writing Perl I absolutely started adding more comments. I make sure that I add a comment with sample input for my regexes, particularly if they're complex.
The Regex comments make all the difference, because I can easily check if my sample inputs that I wrote the regex against have changed. I'm also reminded of what I'm trying to get, instead of trying to figure out "Okay, I have a $host, $ip, ..."