Implement Layer::print and Layer::config in Perl.