【发布时间】:2011-10-01 10:10:52
【问题描述】:
我正在使用 pdl2,交互式 perl pdl shell,我想在行中添加 cmets 以记录下一个代码行,以便稍后查看我的交互式会话。
pdl> # this is a comment
Can't exec "this": No such file or directory at /homes/pmg/pmg-soft/local-perl/local-lib/lib/perl /x86_64-linux/PDL/Perldl2/Plugin/PDLCommands.pm line 51.
是否可以在 pdl2 shell 中添加 cmets?
PS:声望1500的人可以加pdl2标签吗?
[更新]
好的,'#' 确实是我认为的注释符号,但似乎你不能以 # 开始一行,除非你在前面放一个 sp (或类似的东西)。 ?!这是一个“功能”吗?
pdl> # d
Can't exec "d": No such file or directory at /homes/pmg/pmg-soft/local-perl/local-lib/lib/perl5/x86_64-linux/PDL/Perldl2/Plugin/PDLCommands.pm line 51.
pdl> # d # "note the space before the #"
pdl>
【问题讨论】:
标签: perl read-eval-print-loop pdl