Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Answer: How do you extract the server from a URL?

by Abigail-II (Bishop)
on May 23, 2003 at 18:37 UTC ( #260436=categorized answer: print w/replies, xml ) Need Help??

Q&A > CGI programming > How do you extract the server from a URL? - Answer contributed by Abigail-II

use Regexp::Common; my $url = 'http://www.perlmonks.org/index.pl'; print $3 if $url =~ /$RE{URI}{HTTP}{-keep}/;

Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[shmem]: it is just written in another language
[choroba]: that's why we have agile - we don't have any spec
[shmem]: I'm a bit scared by agile (agile imposition) - but then it is crucial how it is lived to crucified or not
[shmem]: s/to cru/to be cru/
[moritz]: agile itself is pretty straight forward: faster feedback loops, working in smaller increments, regularly reflect and try to improve your process
[moritz]: it's just some implementations of agile that are scary

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2017-04-27 14:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (508 votes). Check out past polls.