http://www.perlmonks.org?node_id=990716


in reply to Question 1

Most likely your course material covers the knowledge needed to answer this exam question. I recommend studying the course material.

Replies are listed 'Best First'.
Re^2: Question 1
by jdporter (Paladin) on Aug 30, 2012 at 11:06 UTC

    He got hung up on the very first question. Somehow I don't think he's going to get very far.

Re^2: Question 1
by aaron_baugher (Curate) on Aug 30, 2012 at 13:53 UTC

    Well, at least it's encouraging to see that there are Perl courses being taught out there, and that this one encourages the use of my. On the other hand, the question doesn't include my preferred answer: read the lines into $_, so you don't have to specify any arguments to split to get the desired behavior.

    Aaron B.
    Available for small or large Perl jobs; see my home node.

      I've been teaching Perl for 10 years now. I'm telling you, Perl is not dead! It's out there!

      There are no stupid questions, but there are a lot of inquisitive idiots.