小编Cip*_*ngu的帖子

从bin文件中读取以null结尾的字符串

我想从bin文件中读取一个字符串(该字符串从固定偏移量开始,以null终止)。

如何在Perl脚本中执行此操作?

binary perl

2
推荐指数
1
解决办法
606
查看次数

如何将javascript值设置为Perl变量

我有这个javascript函数:

print <<"EOT";
<script type="text/javascript">
 function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
    window.alert( 'Width = ' …
Run Code Online (Sandbox Code Playgroud)

html javascript perl

1
推荐指数
1
解决办法
1544
查看次数

标签 统计

perl ×2

binary ×1

html ×1

javascript ×1