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

So far Geny looks great. I don't know how to run PERL in Geany. I downloaded VIM too. One thing, instructions and videos seem to be lacking in many ways. It would be nice if people put things in a orderly sequence and make instructions simple. I watched a video once, some of the children are better instructors than adults

Replies are listed 'Best First'.
Re: geany (updated)
by haukex (Archbishop) on Sep 05, 2016 at 13:23 UTC

    Hi ichinyo,

    I've used Geany quite often recently and it's a minimalistic but still decent IDE. Since the target environment for most of my Perl scripts is the terminal instead of a GUI, I usually have a separate terminal window open which I use to run and test my scripts. But there's also the built-in terminal in Geany which works fine, if you have the vertical screen space to spare. Configure the message window to be at the bottom of the screen (Preferences), enable the message window (should be in the "View" menu), and then switch to the "Terminal" tab.

    Update: I just rediscovered that Geany also knows how to run Perl scripts directly from the IDE. Just save your script, hit F5 and it should open a new terminal, run your script, and show you the script's exit code.

    Hope this helps,
    -- Hauke D

      Good post - I use Geany for a few things over the years (comes standard with Slackware), but never realised that you can run a perl script straight from the editor. nano and command line is still the way I will go though, but this information is very handy - Thanks!

      Nick

      Wll, I would need PERL in Geany to begin with. I cannot find it anywhere.

        Hi ichinyo,

        Wll, I would need PERL in Geany to begin with. I cannot find it anywhere.

        I assume you've got Perl installed on your system? Then in Geany, create a new file with the contents print "Hello, World!";, save it somewhere with the file extension .pl, and hit F5.

        To set up a Perl file template, create the file ~/.config/geany/templates/files/perl.pl with whatever contents you like, then in the dropdown next to the new file icon you should get a "perl.pl" entry.

        I don't remember having to do any more integration of Perl with Geany than that...

        Hope this helps,
        -- Hauke D

        I've used Geany under Linux for many years. I never had to enable Perl or install a plug-in for Perl. It just recognized the .pl extension and "did the right thing". Of course, when you create a new file, Geany won't know what language it is until you save it.

Re: geany (?)
by marto (Cardinal) on Sep 05, 2016 at 13:12 UTC
Re: geany (?)
by stevieb (Canon) on Sep 05, 2016 at 16:14 UTC

    Veering away from Geany, I use intelliJ with the Camelcade Perl5 plugin (available within intelliJ's plugin system), the Vim plugin, and Devel::Camelcadedb, which allows you to debug within the IDE. Works flawlessly, and the IDE allows you to run and debug code from within, and also has a built-in terminal window.

    • install intelliJ
    • install plugins from within the IDE
    • install optional Devel::Camelcadedb
    • open project
    • set your preferred Perl SDK (ie. select a perl binary to use for the project, IDE warns you if one is not set, and it's as simple as a couple of clicks to config)
    • write code, run code, debug code
    • commit/push to your VCS from within the IDE

    Configuration can be copied to other machines easily, and runs everywhere (I run it on all my systems, Unix and Windows, including my Raspberry Pis). The setup also works exactly the same with PyCharm, which allows me to seamlessly use the same IDE for both Perl and Python development on some of my development machines.

    update: screenshot.

Re: geany (?)
by LanX (Saint) on Sep 05, 2016 at 13:08 UTC
    What's the question?

    This reads like 5 misguided twitter messages ... ;-)

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!