• Login
Community
  • Login

Run Perl

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 5.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    Robert Shiffman
    last edited by Mar 6, 2017, 11:24 PM

    I’m starting to learn Perl and trying to use Notepad++ to edit a script and then run it. Strawberry Perl is installed. How can I set up a Run shortcut to run the current script? The best I could find on Google was a fairly confused video (https://www.youtube.com/watch?v=caPbaB219bQ ) which recommended cmd /k c:\all\Prog\Strawberry\perl\bin\perl.exe “(FULL CURRENT PATH).” This means I would have to change the command each time I changed the file address. Which doesn’t seem right.

    While on the subject, is there a way to edit or view an existing Run shortcut?

    1 Reply Last reply Reply Quote 0
    • S
      Scott Sumner
      last edited by Mar 7, 2017, 1:14 AM

      @Robert-Shiffman said:

      https://www.youtube.com/watch?v=caPbaB219bQ

      The video you referenced is actually pretty good as far as the pure mechanics of setting it up go. You are missing a $ in front of (FULL_CURRENT_PATH) in your post; it should be $(FULL_CURRENT_PATH). That part is the “magic” which allows you NOT to have to change anything to run different .pl files that you edit with Notepad++, contrary to what you said about “change the command each time…”.

      You can find the text of the existing commands of the Run menu in the shortcuts.xml file. It’s location can vary depending upon your Notepad++ install; easiest way to find it the first time is probably a search for it.

      1 Reply Last reply Reply Quote 1
      1 out of 2
      • First post
        1/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors