so I am doing something like this
print "Please press enter to quit \n"; my $fi = <STDIN>; chomp $fi; if ($fi eq \n ) { exit; } else { while ($fi) { print "Please press enter to quit \n"; $fi = <STDIN>; chomp $fi; if ($fi eq \n ) { exit() } } }
but it is not working because i presume this command
is wrong , so can anyone tell me its alternativeif ($fi eq \n )
In reply to Press enter to exit by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |