Community
    • Login

    Run Perl

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 5.4k 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.
    • Robert ShiffmanR
      Robert Shiffman
      last edited by

      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
      • Scott SumnerS
        Scott Sumner
        last edited by

        @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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors