Itīs represent "not"; 0 represents FALSE; and not 0 represents TRUE;
$quit = 0; while ( ! $quit ){ # means "while not 0", that means "while not false", that means "while true" any statement; } Try this test: #BEGIN OF CODE $count = 10; $quit = 0; while (! $quit) { # "not 0" represents "not false" or just "true", making the "while loop" to be active print $count, "\n"; $count--; if ( $count == 0 ) { $quit = 1; # "not 1" represents "not true" or just "false", making the "while loop" to stop } } print 'Press ENTER to quit', "\n"; $etc = <STDIN>; #END OF CODE Josimar ----- Original Message ----- From: "Grant Hansen" <[EMAIL PROTECTED]> To: "Perl Beginners" <[EMAIL PROTECTED]> Sent: Saturday, September 28, 2002 12:26 AM Subject: Quick ? What is the ! doing in this statement? $quit = 0; while (! $quit) Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]