-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tue, 7 Nov 2006, Philip Prindeville wrote:
I don't grasp the discussion about this topic, you can simply provide a
md_syslog() wrapper for own :-/
I use md_syslog() extensively in MIMEDefang, no single %-sequence in them.
Bye,
- --
Steffen
Philip Prindeville wrote:
Oh... and in digging around, I saw:
sub md_syslog ($$) {
my($facility, $msg) = @_;
[...]
Hmm... Klunky. What about:
sub md_syslog ($$;@) {
my($facility, $fmt, @args) = @_;
Except that now all callers of md_syslog have to change. That's no good.
David F. Skoll wrote:
Philip Prindeville wrote:
Oh... and in digging around, I saw:
sub md_syslog ($$) {
my($facility, $msg) = @_;
[...]
Hmm... Klunky. What about:
sub md_syslog ($$;@) {
my($facility, $fmt, @args) = @_;
Except that now all callers of
Philip Prindeville wrote:
Hmm. syslog() already has printf-style formatting... should the wrapper
occlude that functionality?
Yes, because it's superfluous in Perl. Just use variable interpolation
directly.
And what about callers that have to call sprintf directly if they want to
handle
David F. Skoll wrote:
Philip Prindeville wrote:
Hmm. syslog() already has printf-style formatting... should the wrapper
occlude that functionality?
Yes, because it's superfluous in Perl. Just use variable interpolation
directly.
Doesn't work with hex, or floats, etc. obviously.
Philip Prindeville wrote:
Yes, because it's superfluous in Perl. Just use variable interpolation
directly.
Doesn't work with hex, or floats, etc. obviously. Just strings and
integers.
It works perfectly fine with floats. And hex, if you like:
md_syslog($facility, foo . hex($number) .
6 matches
Mail list logo