Re: sys_wait_h and waitpid

2005-06-07 Thread Bryan R Harris
> Any ideas? Wrap the use() statement in an if block. if ( $^O eq 'darwin' ) { use POSIX; } else { use POSIX qw(:sys_wait_h); } Will that work? > > No. > >>> Only if you wrap that in a BEGIN block. > > And not

Re: sys_wait_h and waitpid

2005-06-07 Thread Paul Johnson
On Tue, Jun 07, 2005 at 08:23:43AM -0700, Bryan R Harris wrote: > > >>> Any ideas? > >> > >> Wrap the use() statement in an if block. > >> > >> if ( $^O eq 'darwin' ) { > >> use POSIX; > >> } else { > >> use POSIX qw(:sys_wait_h); > >> } > >> > >> Will that work? N

Re: sys_wait_h and waitpid

2005-06-07 Thread Bryan R Harris
>>> Any ideas? >> >> Wrap the use() statement in an if block. >> >> if ( $^O eq 'darwin' ) { >> use POSIX; >> } else { >> use POSIX qw(:sys_wait_h); >> } >> >> Will that work? > > Only if you wrap that in a BEGIN block. Remember, 'use' happens at > compile not run

Re: sys_wait_h and waitpid

2005-06-06 Thread Wiggins d'Anconia
Chris Devers wrote: > On Mon, 6 Jun 2005, Bryan R Harris wrote: > > >>Any ideas? > > > Wrap the use() statement in an if block. > > if ( $^O eq 'darwin' ) { > use POSIX; > } else { > use POSIX qw(:sys_wait_h); > } > > Will that work? > > Only if you wrap that i

Re: sys_wait_h and waitpid

2005-06-06 Thread Chris Devers
On Mon, 6 Jun 2005, Bryan R Harris wrote: > Any ideas? Wrap the use() statement in an if block. if ( $^O eq 'darwin' ) { use POSIX; } else { use POSIX qw(:sys_wait_h); } Will that work? -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional