Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 chanting in the Monastery: (5)
As of 2015-01-31 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (257 votes), past polls