in reply to Re^2: Why does fpathconf give "bad file descriptor"?
in thread Why does fpathconf give "bad file descriptor"?
$ perl -MPOSIX -wle'print fpathconf(*STDOUT, _PC_PIPE_BUF)' Argument "*main::STDOUT" isn't numeric in subroutine entry at -e line +1. 4096 $ perl -MPOSIX -wle'print fpathconf(*FOO, _PC_PIPE_BUF)' Name "main::FOO" used only once: possible typo at -e line 1. Argument "*main::FOO" isn't numeric in subroutine entry at -e line 1. 4096
And yes, they are being interpreted as zero.
$ perl -wle'print 0+*STDOUT' Argument "*main::STDOUT" isn't numeric in addition (+) at -e line 1. 0 $ perl -wle'print 0+*FOO' Name "main::FOO" used only once: possible typo at -e line 1. Argument "*main::FOO" isn't numeric in addition (+) at -e line 1. 0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Why does fpathconf give "bad file descriptor"?
by ReturnOfThelonious (Beadle) on Mar 31, 2010 at 20:57 UTC | |
by ikegami (Patriarch) on Mar 31, 2010 at 22:05 UTC | |
by madscientist (Novice) on Apr 01, 2010 at 01:56 UTC |