On Thu, 2005-01-20 at 02:24 +0100, [EMAIL PROTECTED] wrote:
> On line 170 :
> ] elsif ($! != &ENOENT){
> should be
> ] elsif ($| != &ENOENT){
>
Perl documentation says:
$! If used numerically, yields the current value of the C "errno"
variable, or in other words, if a
On line 170 :
] elsif ($! != &ENOENT){
should be
] elsif ($| != &ENOENT){
note the pipe instead of the exclamation mark.
Right now it compares the error string "no such files ... "against
ENOENT which is 2.
$| is the way to retrieve the error value.
This way the error "failed to open ..." is sh
2 matches
Mail list logo