Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: how to do match www.jkghfdjbh.org from $li?

by cdarke (Prior)
on Jun 11, 2013 at 10:18 UTC ( #1038226=note: print w/replies, xml ) Need Help??


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:
m/http://www.[a-z]|[A-Z].[a-z]/i
There are several solutions, the simplest is to use some other character as your delimiter, for example:
m!http://www\.[a-z]+\.[a-z]+!i

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1038226]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2020-05-26 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (150 votes). Check out past polls.

    Notices?