Is the discussion in reply to verilog-perl vhier usage of any help to you?
In reply to Re: vhier and netlist with library by GrandFather in thread vhier and netlist with library by jbr