|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: A Perl aptitude testby jonadab (Parson) |
| on May 05, 2003 at 02:04 UTC ( #255553=note: print w/ replies, xml ) | Need Help?? |
|
considering how many Perl scripts that are out in the wild that use neither 'strict' nor 'warnings,' I think this is a fair question. Oh, it's fair, I just question whether you're going to get honest answers. It's also tricky b/c coming first one psychologically expects it to be the easiest question. Hmmm... then maybe what it's testing is test-taking skills. (Mine are pretty good, but that's not what you probably want to test in most cases.) Would it be less "tricky" if it were pushed back to question 3 or 4? I still think it's an easy question. All you have to know is that "If it looks like a function call, Perl treats it like a function call" (i.e., when you call a function, parentheses after the name of the function define the extent of the arglist). That's pretty fundamental. I'd think you'd have a fairly hard time trying to actually program in Perl without understanding that. All sorts of things would get messed up if you thought foo(blah)+6 would pass (blah)+6 as an argument to foo. Ack. The confusion that would result from such a misunderstanding could be profound.
In Section
Meditations
|
|
||||||||||||||||||||