Simply wrap the entire thing up in a while( $keep_running ) { } block, with $keep_running set to 1 initially, and if the user doesn't want to continue, set it to zero.
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain