my $found=0; while(<>) { if (/woot!/) { print "You said woot!\n"; $found=1; last; } } print "Nobody said 'woot!'\n" unless $found; #### perl -e 'print "How sweet does a rose smell? "; chomp ($n = ); $rose = "smells sweet to degree $n"; *other_name = *rose; print "$other_name\n"'