Perl Programming quiz, level Advanced, question 24
| Question: | When writing an automatic mail responder program (such as vacation or a list server), how do you find out the name of the user to whom the email was sent? |
| Answer 1: | It's available as the first command line parameter ($ARGV[0]) This was the CORRECT answer |
| Answer 2: | You read it from STDIN |
| Answer 3: | It's provided in the environment variable USER |
| Answer 4: | You have to analyse the "to:" line of the email header |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|