in reply to how to do match www.jkghfdjbh.org from $li?
In addition to the replies above, your actual error is because of the embedded / in:
There are several solutions, the simplest is to use some other character as your delimiter, for example:m/http://www.[a-z]|[A-Z].[a-z]/i
m!http://www\.[a-z]+\.[a-z]+!i
|
---|
In Section
Seekers of Perl Wisdom