in reply to Emulating VB Format function in Perl

I'd use method 1 myself. You only have to construct the sprintf spec once per line format, so your regex can be as inefficient as you like, and you're going to have to parse the format somehow regardless of which method you use to output the text.
  • Comment on Re: Emulating VB Format function in Perl