View Single Post
  #2  
Old 12-13-2012, 10:32 AM
Tabasco's Avatar
Tabasco
Discordant
 
Join Date: Sep 2009
Posts: 269
Default

I don't think I have enough information to suggest a specific course of action here, but there are a lot of possibilities.

Your vectors sound like a sort of linked list, but if that's the case, you would most likely be better off using a std::map. In fact, for the purpose of exporting hashes the prototype for PerlembParser::ExportHash takes a map<string, string>.
If you could store it in mob or client you wouldn't need to pass it at all since you would already have a handle on it.

If it's temporary data that is generated uniquely at event time and then discarded, it has the potential to be a bit more complicated.
Depending on just how large these pairs get, you could send perl a string delineated like a query string and let perl do the work since that's what it's good at.
name=value&name=value&name=value, etc.
Reply With Quote