|
i wrote a simple script wihth STDIN function but when i try to stop the input in cmd using Ctrl + Z command i cant.
so to stop it completly i have to pound "\" and then Ctrl + z, which completly stops the program.
how can it be fixed or is there another way to break the operation/
<Added>
i'm runnig win xp home edition
|
|
|
Put your code in the script to exit from the program...like
[code]
while (<STDIN>) {
chomp;
exit if ($_ =~ m/quit/);
[/code]
<Added>
[code]
while (<STDIN>) {
chomp;
exit if ($_ =~ m/quit/);
}
[/code]
|
|
|
|
|
|
|
// |