in reply to Returning a CSV file from CGI

You could also use your webserver's built-in access control to do this job. Simply put the file in a directory and tell your webserver that only those with the right password can access the files in that directory.

perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>); +$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth +er_name\n"'