Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How u convert string "hi pravin how are you?" to
"Hi Pravin How Are You?"

Answer Posted / saravanan

$line = "hi Praveen How are you";

$line =~ s/\b(\w+)\b/ucfirst($1)/e;


print $line;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about shebang?

1041


What are the four fundamental components of every file system on linux?

1685


How do I run a shell script on a mac?

1126


How does path variable work?

983


How can the contents of a file inside jar be read without extracting in a shell script?

1127


What is difference between shell and bash scripting?

990


What is shift command in shell script?

1043


i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..

2136


Given a file find the count of lines containing the word "abc".

1562


Is shell a scripting language?

1018


What is difference between bash and shell?

1110


Can we run shell script in windows?

1143


How to set an array in linux?

1235


What are the advantages of using shell scripts?

1069


What is eval in shell script?

1257