Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

A good editor for Perl sources

by juliosergio (Acolyte)
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!
Thanks,
-Sergio.

Comment on A good editor for Perl sources
Download Code
Re: A good editor for Perl sources
by GrandFather (Cardinal) 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 trizen (Friar) 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.


      Dave

        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 choroba (Abbot) 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 perl.j (Pilgrim) on Feb 28, 2012 at 00:23 UTC
    I use the Vim editor as it is simple yet EXTREMELY powerful.
    --perl.j
Re: A good editor for Perl sources
by tobyink (Abbot) on Feb 28, 2012 at 01:04 UTC
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 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 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.

    Cheers

    Harry

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.


        Dave

        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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2014-08-29 22:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls