in reply to Re: Regexp and reading a file n-lines at time
in thread Regexp and reading a file n-lines at time
if ( /^\d+\.(.*)/sg ) {
Your pattern is anchored at the beginning of the string so the /g option is superfluous. The string in $_ contains only one line so the use of the /s option is also superfluous.
|
|---|