in reply to geany (?)

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

Replies are listed 'Best First'.
Re^2: geany (updated)
by Linicks (Scribe) on Sep 05, 2016 at 17:27 UTC

    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

Re^2: geany (updated)
by ichinyo (Novice) on Sep 07, 2016 at 18:41 UTC
    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.