Thank you! There was a blank line at the end of my input file. I guess when the program tries to split the blank line, it leaves $result with no value. (undef?) That non-existent object has no split method I guess.
Back to learning stuff...
Re^2: using perl 6 book trying first example