Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

coldfingertips

by coldfingertips (Pilgrim)
on Apr 07, 2003 at 04:27 UTC ( #248520=user: print w/ replies, xml ) Need Help??

Why does the below code fail when the url is "http://www.go.com"? Infact, every URL I try to put in there errors out.

if ($url !~ /^http\:/i || $url !~ /^ftp:/i || $url !~ /^file:/i || $u +rl !~ /^mailto:/i || $url !~ /^telnet:/i) { print header; print "<html><head><title>Malformed URL</title>"; print qq(<meta http-equiv="refresh" content="4;url=$redirect_url">< +/head><body>); print "<b>Malformed URL</b><p>You will be redirected to our main pa +ge in 4 seconds. Your url was: $url"; print "</body></html>"; exit; }

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-08-29 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (280 votes), past polls