LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Thomas J Pinkl Date: Tue Jan 16 11:40:59 2007 Subject: getting: Illegal octal digit '8'
I've just started using IPC::DirQueue 0.08. Thanks to the author(s)
for a module that appears to deliver exactly what I need.
I received these warnings:
Illegal octal digit '8' ignored at \
/usr/lib/perl5/site_perl/5.6.1/IPC/DirQueue.pm line 146.
Illegal octal digit '8' ignored at \
/usr/lib/perl5/site_perl/5.6.1/IPC/DirQueue.pm line 148.
which corresponds to this section of code:
$self->{data_file_mode} ||= '0666';
$self->{data_file_mode} = oct ($self->{data_file_mode});
$self->{queue_file_mode} ||= '0666';
$self->{queue_file_mode} = oct ($self->{queue_file_mode});
in sub new(). Lines 146 and 148 are the ones that use 'oct'.
The fix would appear to be:
146: $self->{data_file_mode} = oct sprintf "0%o",$self->{data_file_mode};
148: $self->{queue_file_mode} = oct sprintf "0%o",$self->{queue_file_mode};
Can anyone else confirm this?
--
Thomas J. Pinkl | T: 215-442-9300
Senior Systems Architect | 800-444-1427
Health Business Systems, Inc | F: 215-442-7555
An SXC Company |
738 Louis Drive | http://www.hbsrx.com/
Warminster, PA 18974 | http://www.sxc.com/
| Navigate in group perl.ipc.dirqueue at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |