E
Elephant
Is there a 'use' directive I need to include in order to acess these ?
If I use
$!
in my code it runs fine, but if I use
$ERRNO
(which I would prefer, for readability) I get
H:\Perl Scripts>systest.pl
Global symbol "$ERRNO" requires explicit package name at H:\Perl
Scripts\systest
..pl line 15.
Global symbol "$ERRNO" requires explicit package name at H:\Perl
Scripts\systest
..pl line 18.
Execution of H:\Perl Scripts\systest.pl aborted due to compilation
errors.
It's not just $ERRNO I cannot access - none of the others (eg $PID,
$CHILD_ERROR) work either whereas the short versions ( $$, $? ) work
fine.
I am using Active Perl v5.6.1
If I use
$!
in my code it runs fine, but if I use
$ERRNO
(which I would prefer, for readability) I get
H:\Perl Scripts>systest.pl
Global symbol "$ERRNO" requires explicit package name at H:\Perl
Scripts\systest
..pl line 15.
Global symbol "$ERRNO" requires explicit package name at H:\Perl
Scripts\systest
..pl line 18.
Execution of H:\Perl Scripts\systest.pl aborted due to compilation
errors.
It's not just $ERRNO I cannot access - none of the others (eg $PID,
$CHILD_ERROR) work either whereas the short versions ( $$, $? ) work
fine.
I am using Active Perl v5.6.1