Menu

Run Perl from within Notepad++

hrhan
2009-02-04
2012-11-13
  • hrhan

    hrhan - 2009-02-04

    I would like to use Notepad++ as an interactive development environment for writing Perl scripts.  I tried the following command in the Run Menu.
    Perl -w "$(FULL_CURRENT_PATH)"  However, instead of producing the expected output it produce a graphical view of the directories and files in the C:\ folder.  This is when using Windows XP.   Is what I would like to do feasible?  If it is what have others done to use Notepad++ as an interactive development environment for writing Perl scripts when using Windows XP?

    Howard

     
    • hrhan

      hrhan - 2009-02-06

      I fixed my problem.  It ended up I had the same problem as people writing console mode programs had with earlier versions of Microsoft's Visual Studio.  When you ran a console mode program from within Visual Studio the program's output would only be displayed for a brief interval.  The same thing was happening when using the "RUN" menu within Notepad++ to run a Perl script.  To fix the problem I added the following two lines at the end of my script.
      print ( " control d to quit" );
      $answer=<STDIN>;

      Howard

       
    • DV

      DV - 2009-02-05