in reply to Re: Unable to split $ARGV[0] variable. Can it be done?
in thread [SOLVED]Unable to split $ARGV[0] variable. Can it be done?
Sorry, domain name was what I meant yes.
No it wasn't a typo. 'http://www.google.com' is passed in to the script and a 'get' request is made against that URL using LWP. If the get request fails, it then tries a different prefix 'https://www.google.com' or 'http://google.com' for example. I want to split the domain name away from the prefix so I can chop and change the combinations as I please. It may be easier to have just the domain name passed in to the script and then the script can handle ALL of the prefixes itself.
I appreciate all the responses and am currently working through the suggestions to see what I can work with.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Unable to split $ARGV[0] variable. Can it be done?
by McDarren (Abbot) on Dec 10, 2012 at 16:36 UTC |
In Section
Seekers of Perl Wisdom