使用代码辅助搜索 Perl IDE
我正在寻找带有代码辅助的 perl IDE。
我尝试了 EPIC 和 Padre,但缺少一些东西...
EPIC 有一些小的代码帮助:
#!/use/bin/perl
#Example 1
use strict;
use warnings;
use CGI;
my $q = CGI->n; #it will show new as an option
print $q->h #it won't show header as an option
Padre 不会处理这两种情况,但当我再次尝试使用例如 '$q->h' 时,它将使用header作为一个选项,这在EPIC中是不一样的。
是否有可以处理“示例 1”的 IDE、编辑器或插件?
如果没有,有没有办法混合 EPIC 和 Padre/Vim 或其他任何东西的代码辅助功能:)
Ps 如果我正确安装了 Padre,我就不会。我使用的是 Ubuntu 11.04,并且只执行了“sudo apt-get install padre”。 安装指南说 Ubuntu 11.04 中有一些损坏的库,但它适用于我或我认为它有效(它可能会导致代码辅助出现问题^^谁知道......)。
I am looking for a ide for perl with code assist.
I tried EPIC and Padre but there is something missing...
EPIC has some minor code assist:
#!/use/bin/perl
#Example 1
use strict;
use warnings;
use CGI;
my $q = CGI->n; #it will show new as an option
print $q->h #it won't show header as an option
Padre won't handle both situations but when I try to use for example '$q->h' again it will use header as an option, which is not the same in EPIC.
Is there an IDE, editor or plugin which can handle 'Example 1'?
If not, is there a way to mix the code assist functionality of EPIC and Padre/Vim or whatever is out there :)
P.s. I am not if I have installed Padre correctly. I am using Ubuntu 11.04 and I did only 'sudo apt-get install padre'. The installation guide says that there are some broken libraries in Ubuntu 11.04 but it works for me or I think it works (it may cause problems for the code assist ^^ who knows... ).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在CGI.pm的源代码中有这样的注释:
所以header()方法是在第一次调用时在运行时创建并添加到CGI对象中的。
似乎是动态类型语言的一个功能。我认为 CGI.pm 的这种设计恰好让它变得更快。
我不知道有任何 IDE 可以更方便地处理这个问题。
In the source code of CGI.pm there is this comment:
So the header() method is created and added to the CGI object at runtime when it is first called.
Seems to be a feature of dynamically typed languagues. I think this design of CGI.pm happened to make it faster.
I am not aware of any IDEs that can handle this any more developer-friendly.
Padre-0.84 自动完成功能对我来说既是新的也是标头,所以答案是 Padre ;)
我建议您访问 padre irc 或邮件列表以获取追踪错误的帮助
Padre-0.84 autocomplete's both new and header for me, so the answer is Padre ;)
I suggest you stop by the padre irc or mailing list for help on tracking down the bug