{ my $spec_sub = sub { { path => 0 } }; sub open_for_reading { validate( @_, $spec_sub->() ); } }