Subject: | syslogging a '%' |
Hi,
I have been using Unix::Syslog for about 6 months now with no problems but I have found something which causes it to die.
running the code:
#!/usr/bin/perl
use Unix::Syslog qw(:macros);
use Unix::Syslog qw(:subs);
openlog('test', 'pid', LOG_LOCAL0);
syslog(LOG_INFO,"% n");
causes:
Modification of a read-only value attempted at /usr/local/lib/perl/5.8.0/Unix/Syslog.pm line 58.
This happened both on a solaris 9 machine and a linux machine running 2.4.22 both with perl 5.8.0 both using Unix::Syslog 0.100
I realise that this is an odd thing to print with syslog. I encountered it when I was printing out lines from a file to syslog...
Cheers.