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
What is echo in shell?
Explore about environment variables?
What does echo mean in scripting?
What is shell terminal?
How can we find the process name from its process id?
What is computer cli?
How can the contents of a file inside jar be read without extracting in a shell script?
Calculate a real number calculation directly from the terminal and not any shell script.
What is inside a seashell?
What lives in a shell?
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..
What does sh mean?
How to open a read-only file in the shell?
Explain about non-login shell files?
What is another name for a bash shell script that you might see?