I'm trying to learn perl, and I'm going through the tutorials and such, and I'm trying to figure out how to end this loop so that when it finishes, it doesn't go back up and restart. Anybody have any ideas? Here is the code:
while (<>) {
if(/dick/){
print "you said dick!\n";
} else {
print "you didn't say dick, hah, what a dick!\n";
}
}