Asked by chandima

. Write a program which ask the user to enter a sentence (character by character) and when user press full stop (.) character program should display the full sentence and exit.

Answers

Answered by DrBob222
I wonder if "suranthi" comes close to being the subject of your post?
Answered by Steve
sure. create the file suranthi.pl


system "stty raw";
while ($_ = getc) {
last if $_ eq ".";
}
system "stty cooked";


perl suranthi.pl
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions