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

What are the 3 standard streams in linux?

576


How do I stop script errors?

578


What is the command to find out today's date?

591


What makes c shell a more preferable option than the bourne shell?

544


Is cmd a shell?

598






Explain about login shell?

636


How to get the last line from a file using just the terminal?

674


What language is bash?

496


How to get the first line from a file using just the terminal?

599


What happens on a system call?

565


c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command

4693


Is shell script a programming language?

572


Is shell and terminal the same?

593


Why is a script important?

566


what is info area how many types?

2297