Perl可移植性 [英] Perl portability
问题描述
我写了一个perl脚本并在windows上测试它,它工作正常。然后我将
移到solaris机器上,现在它说有一个语法
错误,代码如下:
$ user1 ="用户名:"。$ rec1 [0];
之前的代码行是:
@ rec1 =拆分(/ @ /,$ autotrack [$ records]);
任何想法?
我看不出有什么独特之处关于那个窗户。我在Windows窗口框中的perl版本有
a差异
活动状态v5.8.6和solaris框有solaris perl 5.00.3或
类似的东西。
user1 ="用户名:"。
< blockquote> rec1 [0];
之前的代码行是:
@ rec1 = split(/ @ /,
自动跟踪
I wrote a perl script and tested it on windows and it works fine. I then
moved it onto a solaris machine and now it says that there is a syntax
error with the following line of code:
$user1 = "User name: ".$rec1[0];
the line of code just before that is:
@rec1 = split(/@/, $autotrack[$records]);
any ideas?
I can''t see that there is anything uniquely windows about that. There is
a difference in the version of perl in that on the windows box I have
active state v5.8.6 and the solaris box has solaris perl 5.00.3 or
something like that.
user1 = "User name: ".
rec1[0];
the line of code just before that is:
@rec1 = split(/@/,
autotrack
这篇关于Perl可移植性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!