This is based on a Chatterbox discussion yesterday...
My supervisor asked me to meet with an applicant this week to assess his Perl and Tcl/Tk programming prowess. What kind of things should I ask?
I've already made my list, which follows, but somebody suggested this might make a good node, and it might be of use to others.
- What purpose does each of the following serve: -w, strict, -T ?
- What is CPAN?
- Write a Perl program that does the following:
- Opens a file whose name is given on the commandline
- Replaces all occurrences of 'Y' with 'K'
- Writes the results to a new file with ".mod" appended to the original filename
- Runs the external command "swizzle" with the original filename as an argument
- What is the difference between for & foreach, exec & system?
- Where do you go for Perl help?
In the programming section, obviously I'm going to be looking for a lot of things, such as proper file I/O, argument handling, string manipulation/regular expressions, extra credit if the applicant happens to think to make the program accept multiple filenames, proper handling of nonexistant files, method for calling the external program, and, of course, use of -w and strict 8-)