in reply to Can't clone STD handle with :via layer

That is odd. I don't understand why this happens. I have a couple of workarounds which work for me, but may or may not be suitable for whatever you're doing:

Update: I asked about this in #p5p and Zefram agrees that it seems like a bug, or at least the error message could be better. It's now on RT.

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name