改述这个问题:
我正在处理http rest调用并通过http包驱动它们。 所以我从http :: getUrl方法运行了一个http get请求,该方法返回一个包含输出的数组实例。
当我parray $arrName
希望shell挂起时,因为数据大约是50 MB。
它在TCL shell中工作正常,因为它只显示缓冲区输出而不是完整的。
在wish.exe中进行页面阅读的任何解决方案
答案 0 :(得分:0)
There is no way out of it -- with the amounts of data of this magnitude, you need to paginate... How exactly to do that depends on your budget (not money necessarily -- time and effort you have for this task), and the data format.
If the data is tabular, you may wish to utilize the TkTable widget. If it is in HTML, TkHTML may be called for. Simply dumping 50Mb worth of text to stdout
is hardly useful -- a human user can't read through all that anyway. You either need to highlight the important parts or filter out the unimportant...