in reply to Moo-Type checking example from Perl Maven: What should be the expected result?

'say' puts stuff to STDOUT.

'die' spews to STDERR.

Since outputs are to different devices, the order may be intermingled - usually, STDERR output appears first.

You could get your expected output by using 'warn' instead of 'say' (and adding "\n").

                Memory fault   --   brain fried

  • Comment on Re: Moo-Type checking example from Perl Maven: What should be the expected result?