Community
    • Login

    Run Perl

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 5.8k Views 2 Watching
    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 Offline
      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 Offline
        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

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors