On Wed, Jan 4, 2017 at 12:22 AM, Chris Fedde <ch...@fedde.us> wrote: > my ($condition, @fields) = parse_data($source_item); > print sprintf $formats[ $condition ], @fields; > > Or something.
Well, I've simplified the example and effectively, in my code, the formats is an hash instrumented by the condition key. Thanks for your comments. Luca -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/