CGIに依存しないPerlの話題一般/Part2at PHPCGIに依存しないPerlの話題一般/Part2 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト25: ◆JAPH9PWA 02/09/02 16:53 いや、Perlでファイルディスクリプタを得ることは出来るし、 open()関数でCのfdopen()相当のことも出来るよ。 $fd = fileno(STDIN); open STDIN2, "<&=$fd"; 26: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. ってビミョーですな。 27: ◆4XfSMGTg 02/09/02 23:01 ナンでも聞け 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch