http://qs1969.pair.com?node_id=131635


in reply to Dynamically create a format definition

Use eval. See the camel p 126 or perlform.