Below is my code, basically if the answer is "Y" then the script runs a message if it's something else then it closes.
Quote:#! usr/bin/perl
print "Do you wish to run Program? [Y/N]:";
$answer = <>;
if($answer == "Y") {
print "COOOL\n";
} else {
system "exit"
}