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
>  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]

Reply via email to