CGIに依存しないPerlの話題一般/Part2at PHP
CGIに依存しないPerlの話題一般/Part2 - 暇つぶし2ch26:24
02/09/02 18:03
ぎゃふん。
なるほどfileno()ですか。

% perldoc -f open

If you specify "'<&=N'", where "N" is a number, then Perl will
do an equivalent of C's "fdopen" of that file descriptor; this
is more parsimonious of file descriptors. For example:

open(FILEHANDLE, "<&=$fd")

でも
Note that this feature depends on the fdopen() C library
function. On many UNIX systems, fdopen() is known to fail when
file descriptors exceed a certain value, typically 255. If you
need more file descriptors than that, consider rebuilding Perl
to use the "sfio" library.

ってビミョーですな。


次ページ
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch