Yes, I had forgotten that since it is a class method, the class object is passed in as the first parameter. So the two explicit parameters are actually the second and third elements of @_. My third element was undef, which is a problem elsewhere in my code.