in reply to Parsing Strings

You can use Verilog::Netlist to parse Verilog code.