user2925716
user2925716

Reputation: 999

Perl5 plugins for IntelliJ IDEA

I've tried to get an IDE for Perl 5 but with just while line

print "8";

it cycles many minutes and does nothing after all.

enter image description here

Upvotes: 1

Views: 1177

Answers (1)

Håkon Hægland
Håkon Hægland

Reputation: 40748

I tested this on Windows 10. First I installed the community edition of IntelliJ IDEA on Windows from here. Then I opened the IDE and installed the Perl plugin as described here : enter image description here

Then configured the plugin by going to Settings->Languages & Frameworks->Perl5 :

enter image description here

Click the cogwheel at the right side of Perl5 Interpreter and select your installed Perl exe (I am using Strawberry Perl):

enter image description here

Close the settings dialog and choose File->New project.. and select Perl5 from the list:

enter image description here

click Next and then choose the Perl interpreter to use:

enter image description here

Choose a project name and its location:

enter image description here

Click the name of the project in the project view at the left side of the window, and choose File->New->Perl5 file. Type in the name of the script, and choose Script from the list :

enter image description here

Type in the hello.pl script in the editor:

enter image description here

Select Run->Run.. from the menu, and click Add new.. configuration:

enter image description here

In the dialog enter a new name for the run configuration, and enter the location of the script:

enter image description here

Then click Run and you should get output like this:

enter image description here

Upvotes: 6

Related Questions