in reply to Why does fpathconf give "bad file descriptor"?
defined( $sz = fpathconf($wd, _PC_PIPE_BUF) ) or die "fpathconf(pipe): $!\n";
Update: Not quite. As ReturnOfThelonious points out, the function appears to expect a file number. The proper usage is actually
defined( $sz = fpathconf(fileno($wd), _PC_PIPE_BUF) ) or die "fpathconf(pipe): $!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why does fpathconf give "bad file descriptor"?
by madscientist (Novice) on Mar 31, 2010 at 19:36 UTC | |
by ikegami (Patriarch) on Mar 31, 2010 at 19:49 UTC | |
by madscientist (Novice) on Apr 01, 2010 at 04:25 UTC |