Used to match blank or comment lines, I think.if ( $data =~ m/^\s*(?:#|$)/ ) {
I don't understand the usage of ?: in the grouping. Does not seem to make a difference in my testing.
So, what is the ?: for and why did they use it?Also where is the construct "?:" documented? I have searched around but it is a hard term to search for.
Thanks in advanceIn reply to Explain regex ?: usage in grouping by plc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |