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 being set differently than before ... And I have no idea why. We are using ERRNO:
@ReadyHandles = $Selector->can_read($SelectTmOut); ... if (scalar(@ReadyHandles) > 0) { ... else { if (! $ERRNO) { ... } else { # Error on select() call unless ($ERRNO == EINTR) { ... Somehow ERRNO is getting set differently using 5.8.0. Even more strange, the package works great using the Tk debugger and 5.8.0. So here I am trying to learn a few things: How ERRNO works, and why our team chose to use ERRNO when checking the handles. Thanks again for the help, Jason >#!/usr/local/bin/perl > printf "Hello World\n"; > printf "ERRNO: %d\n", $!; > use lib "$ENV{RTM_HOME}/rtm/src/vtm"; > printf "ERRNO: %d\n", $!; That 'use lib' line is happening FIRST, because 'use' happens at compile-time, and the rest of your program happens at run-time. But WHY ARE YOU LOOKING AT $! here? There's no reason to. $! has no meaningful value unless something has gone wrong. Nothing has gone wrong, so don't worry about it. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]