perldoc -u -f atan2

Seanake 2012-09-05 08:47:22
windows 下cmd中键入perldoc -u -f atan2,控制台出现下面三行
Can't spawn "cmd.exe":No such file or directory at C:/Perl/lib/Pod/Perdoc.pm line 1681.
Can't spawn "cmd.exe":No such file or directory at C:/Perl/lib/Pod/Perdoc.pm line 1681.
Can't spawn "cmd.exe":No such file or directory at C:/Perl/lib/Pod/Perdoc.pm line 1681.
在komodo IDE中

#! perl
@lines = `perldoc -u -f atan2`;
foreach(@lines){
s/\w<([^>]+)>/\U$1/g;
print;
}

运行没反应啊
...全文
234 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Seanake 2012-09-05
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]

不会吧,缺省 cmd 就在 C:\Windows\system32

Perl code
C:\Windows\system32>perldoc -u -f atan2
=over 8

=item atan2 Y,X
X<atan2> X<arctangent> X<tan> X<tangent>

=for Pod::Functions arctangent of Y/X in the……
[/Quote]


谢啦,添加到path中更方便啦,...
bugs2k 2012-09-05
  • 打赏
  • 举报
回复
不会吧,缺省 cmd 就在 C:\Windows\system32

C:\Windows\system32>perldoc -u -f atan2
=over 8

=item atan2 Y,X
X<atan2> X<arctangent> X<tan> X<tangent>

=for Pod::Functions arctangent of Y/X in the range -PI to PI

Returns the arctangent of Y/X in the range -PI to PI.

For the tangent operation, you may use the C<Math::Trig::tan>
function, or use the familiar relation:

sub tan { sin($_[0]) / cos($_[0]) }

The return value for C<atan2(0,0)> is implementation-defined; consult
your atan2(3) manpage for more information.

Portability issues: L<perlport/atan2>.

=back

C:\Windows\system32>
Seanake 2012-09-05
  • 打赏
  • 举报
回复
网上找到答案了.,在系统变量 path 增加一个项:C:\Windows\System32;
问题即可解决。

37,718

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧