Hi Julian
On Mon, Sep 24, 2007 at 10:34:59AM +, Julian Mehnle wrote:
> Ola Lundqvist wrote:
> > > `perldoc -f do` says:
> > > | If "do" cannot read the file, it returns undef and sets $! to the
> > > | error. If "do" can read the file but cannot compile it, it returns
> > > | undef and sets an
Ola Lundqvist wrote:
> > `perldoc -f do` says:
> > | If "do" cannot read the file, it returns undef and sets $! to the
> > | error. If "do" can read the file but cannot compile it, it returns
> > | undef and sets an error message in [EMAIL PROTECTED] If the file is
> > | successfully compiled, "d
Hi Julian
On Sun, Sep 23, 2007 at 03:12:05PM +, Julian Mehnle wrote:
> Ola Lundqvist wrote:
> > On Sun, Sep 23, 2007 at 11:49:36AM +, Julian Mehnle wrote:
> > > So I think debarchiver should check $! and $@ rather than the result
> > > of do() ("unless ($t)"), which really says nothing abo
Ola Lundqvist wrote:
> On Sun, Sep 23, 2007 at 11:49:36AM +, Julian Mehnle wrote:
> > So I think debarchiver should check $! and $@ rather than the result
> > of do() ("unless ($t)"), which really says nothing about whether the
> > file could be read and compiled successfully, UNLESS you requir
Hi again
Now I have checked the documentation and it says like this:
If do cannot read the file, it returns undef and sets $! to the error.
If do can read the file but cannot compile it, it returns undef and sets
an error message in $@ . If the file is successfully compiled, do returns
the value
Hi
On Sun, Sep 23, 2007 at 11:49:36AM +, Julian Mehnle wrote:
> Ola Lundqvist wrote:
> > I have now tried to reproduce your problem, but failed.
> >
> > The current code that cause the warning looks like this:
> >
> > if (-e $etcconfigfile) {
> > my $t = do $etcconfigfile;
> > unless (
Ola Lundqvist wrote:
> I have now tried to reproduce your problem, but failed.
>
> The current code that cause the warning looks like this:
>
> if (-e $etcconfigfile) {
> my $t = do $etcconfigfile;
> unless ($t) {
> pdebug(3, "Loading config file $etcconfigfile:\n\t$!\n\t$@");
> }
tags 443405 + unreproducible help
thanks
Hi Julian
I have now tried to reproduce your problem, but failed.
The current code that cause the warning looks like this:
if (-e $etcconfigfile) {
my $t = do $etcconfigfile;
unless ($t) {
pdebug(3, "Loading config file $etcconfigfile:\n\
Hi Julian
On Sat, Sep 22, 2007 at 01:27:11AM +, Julian Mehnle wrote:
> Ola Lundqvist wrote:
> > I think you need to end the configuration file with
> >
> > 1;
>
> Why would that make a difference? The last statement is ...
>
> $gpgkey = '74E1D63F';
>
> which returns a true value. So thi
Ola Lundqvist wrote:
> I think you need to end the configuration file with
>
> 1;
Why would that make a difference? The last statement is ...
$gpgkey = '74E1D63F';
which returns a true value. So this is equivalent to a trailing "1;".
> Please try that and tell me if the warning disappear.
Hi Julian
I think you need to end the configuration file with
1;
Please try that and tell me if the warning disappear.
The ^I part is the error output from perl. It should contain the error
code and error string. I do not know why it is ^I in your case.
Best regards,
// Ola
On Fri, Sep 21, 2
11 matches
Mail list logo