Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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?
jkva dusts the floor
[karlgoethebier]: Totally OT but my pleasure: Next week i'll have my first archery lesson.
[Corion]: Hi jkva!
[Corion]: karlgoethevier: Oooh, that sounds interesting! ;)
[karlgoethebier]: btw, good morning
[Happy-the-monk]: karlgoethebier: have fun! Did some archery at the age of 14 or so.
[karlgoethebier]: Corion: It is, indeed.

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2017-10-20 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (260 votes). Check out past polls.

    Notices?