$aa = "Main:http://google-test.com:8080/service"
(or)
$aa = "http://google-test.com:8080/service2"
I want to split this into two parts:
Main:
http://google-test.com:8080/service
But it is not working with this split:
split (/\:/,$aa,1);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need change the limit from 1 to 2.
From perldoc -f split:
It looks like you were trying to use it as the maximum number of times to split and not the number of parts to return.