Feature request: printf
Jeremy Blain <[email protected]> Fri, 22 Sep 2006 10:55:30 -0400
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
I often find myself having to do:
$m->print(sprintf('some pattern', $var1, $var2));
It would be really nice to have $m->printf just as a shortcut.
The function seems simple, and I would have submitted a patch,
but the test kit was taking too long to wrap my head around, and
I know you much prefer patches with tests.
# Request.pm
sub printf {
my $self = shift;
$self->print(sprintf(shift, @_));
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV