CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Module: FirstGoodURL

 



japhy
Enthusiast

Jan 11, 2000, 9:16 AM

Post #1 of 2 (2231 views)
Module: FirstGoodURL Can't Post

This is an announcement that seems rather apropos, since there have been a couple threads for link listing programs.

I've just finished writing a module, FirstGoodURL.pm, that returns the first active (returns HTTP status code 200) link in a list...

To use the module, simply place it in a directory (let's say /some/dir/foo), and do:

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>

use lib "/some/dir/foo";
use FirstGoodURL;
@URLs = ('http://...', 'http://...', ...);
$good = find FirstGoodURL @URLs;
if ($good) { print "Found at $good\n"; }
else { print "File not found\n"; }
</pre><HR></BLOCKQUOTE>

The module has builtin documentation via perldoc:

perldoc FirstGoodURL

will give you the documentation for it (if you're in the directory with the module, or the module has been placed with the other Perl modules on your machine).

This module is available for downloading at: http://www.crusoe.net/~jeffp/modules/

You can download the tar-gzipped package, which allows you to officially install the module, or you can download just the module.

I hope this module is useful for you.

[This message has been edited by Jasmine (edited 01-11-2000).]


AlanBell
Deleted

Jan 12, 2000, 3:28 AM

Post #2 of 2 (2231 views)
Re: Module: FirstGoodURL [In reply to] Can't Post

Just testing to see if I can respond to this posting!

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives