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 in a BEGIN block. Remember, 'use' happens at compile not run time. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>