M
Morty Abzug
One thing I've wanted a couple of times, and have coded once: a module for generic string processing/formatting. I looked on CPAN, and don't see it. I vaguely recall having seen something like this before. Am I missing something? Or should I genericize my current code and publish it?
The idea is to do something like this:
my $formatter=new String::Formatter(h=>"red-sonja", o=>"linux", r=>"3.0");
my $output=$formatter->format("Output for host %h\n"); # should yield "Output for host red-sonja\n"
Does something like this already exist? I'd prefer not to reinvent the wheel if at all possible. I can't find it on CPAN, but maybe I'm not looking hard enough.
The idea is to do something like this:
my $formatter=new String::Formatter(h=>"red-sonja", o=>"linux", r=>"3.0");
my $output=$formatter->format("Output for host %h\n"); # should yield "Output for host red-sonja\n"
Does something like this already exist? I'd prefer not to reinvent the wheel if at all possible. I can't find it on CPAN, but maybe I'm not looking hard enough.