Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Unable to split $ARGV[0] variable. Can it be done?

by McDarren (Abbot)
on Dec 10, 2012 at 15:50 UTC ( [id://1008125]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use URI::Split qw/uri_split/;
    my $url = 'http://www.google.com';
    my ($proto, $fqdn) = uri_split($url);
    print "Protocol:$proto Domain:$fqdn\n";
    
  2. or download this
    Protocol:http Domain:www.google.com
    

Log In?
Username:
Password:

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

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

    No recent polls found