Perl: the Markov chain saw | |
PerlMonks |
Re: match functionby Corion (Patriarch) |
on Jun 09, 2020 at 19:01 UTC ( [id://11117880]=note: print w/replies, xml ) | Need Help?? |
What is your question? I think the error message is quite clear:
There is an unmatched opening square bracket in your regular expression. Your regular expression is
Maybe you wanted to write [Bb], or maybe ([B|b])? But that's not what you wrote. Also, the following code will most certainly not do what you think it does:
Most likely, you want to use the regex binding operator =~ and not the assignment operator =.
In Section
Seekers of Perl Wisdom
|
|