Re: non-determinate program execution in perl

2005-08-31 Thread Ken Irving
> On 8/30/05, Donald Perkovich <[EMAIL PROTECTED]> wrote: > > I have a perl program that runs every hour that scans a POP3 maildrop. > About once every other day the program fails and I get this error: > > Can't call method "user" on an undefined value at > /home/user/bin/fetch- h

Re: non-determinate program execution in perl

2005-08-31 Thread Nelson Castillo
On 8/30/05, Donald Perkovich <[EMAIL PROTECTED]> wrote: I have a perl program that runs every hour that scans a POP3 maildrop.About once every other day the program fails and I get this error:Can't call method "user" on an undefined value at/home/user/bin/fetch- headers.pl line 40.It appears to me

Re: non-determinate program execution in perl

2005-08-31 Thread Jon Dowland
On Wed, Aug 31, 2005 at 10:51:31PM +0200, srg krn wrote: > I have no idea of perl at all. > It is possible that line 40 must be: > $server->user(%pop{user}) || die; > instead of: > $server->user($pop{user}) || die; > ? No. Hashes can only contain scalars, thus, when you are dereferencing a hash yo

Re: non-determinate program execution in perl

2005-08-31 Thread srg krn
I have no idea of perl at all. It is possible that line 40 must be: $server->user(%pop{user}) || die; instead of: $server->user($pop{user}) || die;? On 8/30/05, Donald Perkovich <[EMAIL PROTECTED]> wrote: I have a perl program that runs every hour that scans a POP3 maildrop.About once every other d

non-determinate program execution in perl

2005-08-30 Thread Donald Perkovich
I have a perl program that runs every hour that scans a POP3 maildrop. About once every other day the program fails and I get this error: Can't call method "user" on an undefined value at /home/user/bin/fetch-headers.pl line 40. It appears to me that the hash isn't being properly initialized. He