Author Topic: Slickedit Perl STDIN capture output  (Read 2515 times)


  • New Community Member
  • Posts: 1
  • Hero Points: 0
Slickedit Perl STDIN capture output
« on: December 26, 2011, 05:28:00 pm »
I uses SlickEdit 2011 (v16.0.3.0 64-bit), and have some problems with Perl.
If I have some code like:
Code: [Select]
                # a statements
            # Other statements
                print "Select from menu:\n";
                my $i = 0;
                my @keys = keys %menu;
                foreach (@keys)
                    printf("[%u] %s\n", $i, $keys[$i]);
                print "q for exit\n";

    } while ($input = <STDIN>);

The problem is when running from inside SlickEdit, the capture output prevent from setting the input during running, and seeing any output before the program is finished running.
If I disable capture output, it starts the application in a cmd, and it works as expected.
Though the problem is that this cmd window is closed by itself when there is a syntax error.
I can of cause create two execute commands, but is their not a better way?
How do you others write Perl scripts with uses STDIN in SlickEdit?

Thanks ahead