sending URLs 
Author Message
 sending URLs

hi
i was wondering if anyone has examples of a perl script that can receive
or send urls???
thanks



Tue, 11 Jan 2000 03:00:00 GMT  
 sending URLs

: i was wondering if anyone has examples of a perl script that can receive
: or send urls???

#!/usr/bin/perl -w
# rsurl - receives and sends urls.
# Craig Berry (970725)

print "Hey, I wanna receive a url! : ";

my $url = <>;

chomp $url;

print "Hmm, *may* not be a url, but okay...\n"
  unless $url =~ m#(?i)(?:https?|ftp|file)://#x;

print "Sending your url to standard output: $url\n"

---

Hope this helps!

---------------------------------------------------------------------

 --*--    Home Page: http://www.cinenet.net/users/cberry/home.html
   |      Member of The HTML Writers Guild: http://www.hwg.org/  
       "Every man and every woman is a star."



Tue, 11 Jan 2000 03:00:00 GMT  
 sending URLs



Quote:
> hi
> i was wondering if anyone has examples of a perl script that can receive
> or send urls???
> thanks


Take Perl INet Module at CPAN..

--
--------------------------------------------
Sergio Stateri Jr
S?o Paulo (SP) - Brazil

--------------------------------------------



Tue, 11 Jan 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Substituting source urls with redirected urls

2. filter of absolute urls to relative urls?

3. Tell apart file URLs from dir URLs?

4. Send not sending for my Client/Server setup.

5. Sending mail under Cygwin using Mail::Send perl module

6. Send, wait, send

7. PERLFUNC: send - send a message over a socket

8. PERLFUNC: send - send a message over a socket

9. External URLS

10. Problem with HTTPS Urls

11. verify URLs in HTML

12. How to check correct URLs from perl5

 

 
Powered by phpBB® Forum Software