On Thu, Mar 12, 2009 at 08:51:45AM -0700, Ovid wrote: : : ----- Original Message ---- : : > From: David Green <david.gr...@telus.net> : : > I suppose, but is there a reason why you want to apply roles instead of coercing : > the results? : > : > $x = Role::Serializable::XML $resultset; : > $y = Role::Serializable::YAML $resultset; : : : Because I am coming from Moose instead of Perl 6 and didn't know about this :)
Note however that coercions require parens these days, since types parse as values, not as routine names. $x = Role::Serializable::XML($resultset); $y = Role::Serializable::YAML($resultset); Larry