Re: ERRNO ... What am I missing

2003-08-14 Thread Jeff 'japhy' Pinyan
On Aug 7, Allison, Jason (JALLISON) said: >Can someone explain the interaction of POSIX ERRNO and PERL scripts? When >does ERRNO get set and is it set with each PERL call? I cant seem to track >when '$!' is set. Sometimes it will be set to 0, and others 2. I am having >difficultly nailing its

Re: ERRNO ... What am I missing

2003-08-14 Thread Steve Grazzini
On Thu, Aug 07, 2003 at 02:43:12PM -0400, Allison, Jason (JALLISON) wrote: >if (scalar(@ReadyHandles) > 0) >{ > ... >else >{ > if (! $ERRNO) > { > ... > } > else > { > # Error on select() call > unless ($ERRNO == EINTR) > { >

RE: ERRNO ... What am I missing

2003-08-14 Thread Allison, Jason (JALLISON)
Quote: "Why are you bothering to look at $! here?" The snippets below are just that, snippets. We are in the progress of testing the upgrade from 5.6.1 to 5.8.0. Everything works great with 5.6.1. When using 5.8.0 (5.8.0 works fine in the http://world.std.com/~aep/ptkdb/ debugger), ERRNO is bei

Re: ERRNO ... What am I missing

2003-08-14 Thread R. Joseph Newton
"Allison, Jason (JALLISON)" wrote: > >if (scalar(@ReadyHandles) > 0) >{ > ... >else >{ > if (! $ERRNO) Here is the problem. You are trying to use ERRNO like a return code, assuming it is set to 0 if nothing is wrong. You can't assume that. Use it only in the context of th

RE: ERRNO ... What am I missing

2003-08-12 Thread Allison, Jason (JALLISON)
the 'use lib' call? Thanks again, Jason -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 1:58 PM To: Allison, Jason (JALLISON) Cc: '[EMAIL PROTECTED]' Subject: Re: ERRNO ... What am I missing On Aug 7,

RE: ERRNO ... What am I missing

2003-08-08 Thread Jeff 'japhy' Pinyan
On Aug 7, Allison, Jason (JALLISON) said: >#!/usr/local/bin/perl > printf "Hello World\n"; > printf "ERRNO: %d\n", $!; ># use lib "$ENV{RTM_HOME}/rtm/src/vtm"; ># printf "ERRNO: %d\n", $!; >$ t >Hello World >ERRNO: 0 Why are you bothering to look at $! here? >#!/usr/local/bin/perl > pri