Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Simple link extraction tool

by arkturuz (Curate)
on Jan 03, 2007 at 12:47 UTC ( [id://592752]=note: print w/replies, xml ) Need Help??


in reply to Simple link extraction tool

I always check for user input and the (non)existence of it, so I added simple:
my $url = shift; if (!$url) { print "Usage: $0 URI\n"; exit 1; }
Also if user enters URI without 'http', add it:
if ($url !~ m(^http://)i) { $url = 'http://' . $url; }
Checking and validating user input is (for me) a must-have task, even for simple and small program like this.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-19 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found