Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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??


in reply to [SOLVED]Unable to split $ARGV[0] variable. Can it be done?

perl getrequest.pm http://www.google.com my $url = $ARGV[0]; my ($host)=$url=~/https?:\/\/([^\/]+)/;
print "Good ",qw(night morning afternoon evening)[(localtime)[2]/6]," fellow monks."


Comment on Re: Unable to split $ARGV[0] variable. Can it be done?
Select or Download Code

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 drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2014-10-24 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (134 votes), past polls