Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 chanting in the Monastery: (8)
As of 2016-02-14 15:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (470 votes), past polls