Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Determining foreign port number

by tomhukins (Curate)
on Mar 05, 2001 at 23:11 UTC ( [id://62319]=note: print w/replies, xml ) Need Help??


in reply to Determining foreign port number

use URI::URL (); my $url = URI::URL->new($url_as_string) or warn "URL error"; print $url->port

$url_as_string would be the full URL you are parsing, such as http://www.example.com/ or http://www.example.com:8080/url.html.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-25 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found