读-福瑞哈哥-的POE学习笔记
http://bbs.chinaunix.net/thread-908855-1-1.html
wheel部分有個小例子,代碼不貼了。
其中有幾行:
?
?
?
原以為$console->get僅僅是終端輸出,所以在copy腳本的時候就刪掉了。結果怎么調代碼都不回顯,server端也收不到東西。
cpan上關于這個get函數(shù)的說明:
get
get() causes POE::Wheel::ReadLine to display a prompt and then wait for input. Input is not noticed unless get() has enabled the wheel's internal I/O watcher.
After get() is called, the next line of input or exception on the console will trigger an InputEvent with the appropriate parameters. POE::Wheel::ReadLine will then enter an inactive state until get() is called again.
Calls to get() without an argument will preserve the current prompt. Calling get() with an argument before a whole line of input is received will change the prompt on the fly.
悲催啊。。。。。
轉載于:https://blog.51cto.com/716378/607598
總結
以上是生活随笔為你收集整理的读-福瑞哈哥-的POE学习笔记的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C 数组初始化
- 下一篇: 初学Java多线程【1】:线程简介