Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by McDarren (Abbot)
on Dec 10, 2012 at 15:50 UTC ( #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
Node Status?
node history
Node Type: note [id://1008125]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-09-15 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls