Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

A good editor for Perl sources

by juliosergio (Sexton)
on Feb 28, 2012 at 00:01 UTC ( #956553=perlquestion: print w/replies, xml ) Need Help??

juliosergio has asked for the wisdom of the Perl Monks concerning the following question:

Do you know of any good editor, in Linux, for Perl sources?
This is because neither Emacs nor Gedit highlight your code well when using the  -> operator for references. Both tend to interpret the rest of your source code as a string!

Replies are listed 'Best First'.
Re: A good editor for Perl sources
by choroba (Cardinal) on Feb 28, 2012 at 00:21 UTC
    I use Emacs for Perl scripting. I have no problems with the arrow operator. What major mode did you use? I recommend cperl.
      I second this cperl-mode is far better than the default perl-mode.

      @OP: try  M-x cperl-mode if you like it we can show you how to make it your default for perl.

      Cheers Rolf

Re: A good editor for Perl sources
by ambrus (Abbot) on Feb 28, 2012 at 11:59 UTC
      It could do with an update, I'm missing notepad++ and Kate.

        It links to Perl Development Tools which has some information about those editors. That node too, is a bit outdated.

Re: A good editor for Perl sources
by GrandFather (Saint) on Feb 28, 2012 at 00:06 UTC

    I've not used it to any extent (I use Komodo which is very good, but not cheap), but many people like Padre.

    True laziness is hard work
Re: A good editor for Perl sources
by tobyink (Canon) on Feb 28, 2012 at 01:04 UTC
Re: A good editor for Perl sources
by trizen (Hermit) on Feb 28, 2012 at 00:13 UTC
    Personally, I use Geany. It has a very good syntax highlighting.

      I also use Geany as my GUI-oriented editor, both on Windows and Linux. I like that I don't have to think about different shortcuts when I switch between environments. And feels light-weight; doesn't get in the way. I'm not a big fan of elaborate IDE's. I do some work in MS Visual Studio (non-Perl-related stuff) and for all its bells and whistles I still wish for simplicity.


        does Geany support correct/automatic code-indentation? When I took a look into it 2 weeks ago I wasn't able to figure out how.

        >I like that I don't have to think about different shortcuts when I switch between environments.

        indeed an ugly problem, I solved it by resetting/aliasing the usual control keys in emacs to mainstream - like x,c,v,a,z,f - which was tricky because I needed to elaborate some DWIM decisions to support the old functionality.

        And most people have such problems of conflicts with "muscle memory" of there fingers.

        E.g. I know people who try making there Firefox behave like VI with add-ons like vimperator.

        Cheers Rolf

Re: A good editor for Perl sources
by perl.j (Pilgrim) on Feb 28, 2012 at 00:23 UTC
    I use the Vim editor as it is simple yet EXTREMELY powerful.
Re: A good editor for Perl sources
by JavaFan (Canon) on Feb 28, 2012 at 01:13 UTC
    I use vi (available on real Unix systems), a vi-clone of my choice (available on most platforms), or vim if I cannot avoid it (Linux boxes I haven't had the chance to install something sensible). It works for me, so I call it a good Perl/C/HTML/shell/SQL/Python/mail/news/plain text/Java/Pascal/awk/Ruby editor.

    But I use black on gray for all my highlighting; so, I would never have a problem with arrows.

      Just out of curiosity, why the preference for vi over vim? I've always thought of vim as a more advanced version of vi.
Re: A good editor for Perl sources
by dHarry (Abbot) on Feb 28, 2012 at 16:17 UTC

    I've been using Eclipse with the EPIC plugin on Windows (various), Linux (various) and lately Mac OSX. It has served me well over the years and behaves almost identical on all platforms (the Mac being the exception...). It has tons of features and some very useful plugins.

    If you don't mind spending money you might give the komodo a try. I have only played with the free trial but it looked good.



Re: A good editor for Perl sources
by elTriberium (Friar) on Feb 28, 2012 at 19:11 UTC

    I'm also using Komodo IDE, got a license at work for it.

    It's very good, however my biggest complaint is that it doesn't understand Moose code, for example autocomplete doesn't work with my Moose modules. So I disabled autocomplete completely as it doesn't make sense for me.

    On that note: Does anybody know a Perl IDE which understands Moose code for features like autocomplete?

        Emacs.... Yes... I've heard there's a good editor for that platform. ;)

        Couldn't resist.


        Cool, good to know that this exists, although I'm not an emacs-fan.

        If only somebody would do the same for Komodo or vim. Sure, I could try that myself, but I'm not yet annoyed enough to do that ;)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://956553]
Approved by davido
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2023-10-03 11:06 GMT
Find Nodes?
    Voting Booth?

    No recent polls found