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

Workflow / Setup Questions

by monsignor (Acolyte)
on Aug 03, 2022 at 18:37 UTC ( #11145923=perlquestion: print w/replies, xml ) Need Help??

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

Please pardon this humble neophyte, but I am having trouble getting my head around how to set myself up efficiently. The general language documentation is excellent! I love the elegance of the language and I have managed to write several moderately complex scripts just using VIM.

I have been debugging by running perl at the command line, adding print statements for debugging, rerunning, removing the print statements, etc. This seems unnecessarily slow and tedious, so I'm hoping there might be a better way. (For example Python has Idle--when a program dies, it leaves the environment intact so that you can execute code interactively to get more information without having to edit the original code and reproduce the error.

  1. Is there an IDE with good code completion for Perl that runs on a modern linux? PADRE looks like the type of thing that would be ideal, but it seems to be abandonware (Ubuntu 10!? Circa 2012). Strawberry Perl also looks good... but I don't do Windows, and it appears to be for Windows only. The "perl debugger" looks very hard to use for a casual user.

    Since I don't code on a daily basis syntax completion would be a big help, but I don't have a budget for an expensive commercial product.
  2. How to install packages so that I don't make a mess of my system. (I develop on Linux Mint.)
  3. Is there a way to deploy scripts so that they are stand alone (say a single source file, or a single directory? I want to deploy a script or two to my pfSense box without disrupting the system or installing a lot of bloat or something that might impact the integrity of the system.

My searches have lead me to many broken links or very old pages. Any guidance would be much appreciated.

Replies are listed 'Best First'.
Re: Workflow / Setup Questions
by stevieb (Canon) on Aug 03, 2022 at 19:14 UTC

    1: intellij IDEA IDE (there's a free community version) with the Perl5 plugin. Add Devel::Camelcadedb for in-IDE debugging support. I've been using this setup for a very long time.

    2: For installing packages, use perlbrew. The IDE I mentioned is completely compatible with it.

    3: Try Par::Packer.

Re: Workflow / Setup Questions
by BillKSmith (Monsignor) on Aug 03, 2022 at 19:39 UTC
    Give the perl debugger a chance. You can accomplish most of your debugging tasks with only four commands (b, n, x, c). Learn additional commands as your need or interest requires. (Remember how you learned VIM?)
Re: Workflow / Setup Questions -- perl IDE or editor
by Discipulus (Canon) on Aug 04, 2022 at 07:20 UTC

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2023-06-02 15:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found