Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by Utilitarian (Vicar)
on Dec 10, 2012 at 15:16 UTC ( #1008117=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl getrequest.pm http://www.google.com
    
    my $url = $ARGV[0];
    my ($host)=$url=~/https?:\/\/([^\/]+)/;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (17)
As of 2014-10-23 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls